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

Mixed type sequences values #348

Open
lithper opened this issue Oct 18, 2024 · 0 comments
Open

Mixed type sequences values #348

lithper opened this issue Oct 18, 2024 · 0 comments

Comments

@lithper
Copy link

lithper commented Oct 18, 2024

Hi,

First of all, thanks for schemars!

This following is more of a question than an issue.
When trying to deduce a schema from a value, sequences with mixed types are specified with no items information, as shown in from_value.rs~json_value.json.

Any reason oneOf isn't used in such cases instead?
Granted, the values may be an instance of a tuple rather than a mixed-type array, but that seems like a private case of the more generic oneOf?

Thank you!

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