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

Fix for strict Yup casts (#645) #646

Closed
wants to merge 1 commit into from
Closed

Fix for strict Yup casts (#645) #646

wants to merge 1 commit into from

Conversation

Maista6969
Copy link
Sponsor Contributor

Upgrading yup to >v1 breaks the usage of cast for fields that are marked as required but are only defined in these forms when editing existing entities. The simplest fix is to use their suggested upgrade path and allow these fields to be null or undefined on the initial render, since the form validation will ensure that they get filled in before the scene/performer/studio is actually created.

The real fix would be updating all of the schemas to handle the new semantics.

The real fix is updating all of the schemas, but this will work for now
@Maista6969 Maista6969 closed this by deleting the head repository May 18, 2023
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

Successfully merging this pull request may close these issues.

1 participant