Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear unavailable validations #55

Open
belozer-ti opened this issue Jan 22, 2021 · 0 comments
Open

Clear unavailable validations #55

belozer-ti opened this issue Jan 22, 2021 · 0 comments

Comments

@belozer-ti
Copy link

I found bug at the contentful models.
Many models have incorrect validation references.

How its happens:

  1. create model A
  2. create model B
  3. create references field (e.g. category) at the model A
  4. go to settings of category field and add validation Accept only specified entry type to model B
  5. save and check json preview
  6. go to model B and delete this model
  7. go back to model A and check json preview.
  8. validation continues to refer to model B, but model B already deleted
  9. run codegen

In results we will have links to non-existent interfaces and generated code will be broken.

I think this problem on the contentful side.... But maybe need fix it on codegen side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant