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

Add null to Maybe a schemas #1

Closed
wants to merge 3 commits into from
Closed

Conversation

rasheedja
Copy link
Collaborator

@rasheedja rasheedja commented Jul 29, 2024

  • Generate a schema for a
  • Generate a schema with the null type
  • Combine both schemas with a oneOf to emulate Maybe a
  • Follows behaviour of other Maybe instances, e.g., ToJSON

Upstream PR: biocad#103

+ Generate a schema for `a`
+ Generate a schema with the `null` type
+ Combine both schemas with a `oneOf` to emulate `Maybe a`
+ Follows behaviour of other `Maybe` instances, e.g., `ToJSON`
@rasheedja
Copy link
Collaborator Author

rasheedja commented Jul 29, 2024

hold off on merging this, there's a better PR upstream biocad#91

@rasheedja rasheedja closed this Jul 31, 2024
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