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

💡 Feature Request: Provide more robust handling of anyOf(string, object) scenarios #253

Open
aaronsteers opened this issue May 21, 2024 · 0 comments

Comments

@aaronsteers
Copy link
Contributor

Related to issues discovered during work on these PRs:

We currently fall back to string type as a failsafe whenever we get a type we can't type properly. For cases where the field is defined as anyOf(string, object), aka type = ["string", "object"] or type = ["null", "string", object"], we are considering changing the behavior so that the value would be stored in a JSON-like field, such as JSON or VARIANT.

These JSON-like types are capable of holding "bare" string values as well as other variant data.

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