We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From https://github.com/Marwes/schemafy/blob/master/tests/vega/vega.json
{ "$ref": "#/definitions/TopLevelExtendedSpec", "$schema": "http://json-schema.org/draft-04/schema#", "definitions": { "BarConfig": { "additionalProperties": false, "properties": { "cursor": { "enum": [ "auto", "default", "none" ], "type": "string" }, "type": "object" } } } }
BarConfig gets assigned the type Option<String> instead of a specific enum type.
BarConfig
Option<String>
The text was updated successfully, but these errors were encountered:
This is one that I noticed happening a lot as well.
Sorry, something went wrong.
Inline structs are handled at
schemafy/src/lib.rs
Lines 351 to 360 in 7871e21
Enums need to do the same thing, generate a new name expand the schema and push it to self.types (which gets emitted later on).
self.types
No branches or pull requests
From https://github.com/Marwes/schemafy/blob/master/tests/vega/vega.json
BarConfig
gets assigned the typeOption<String>
instead of a specific enum type.The text was updated successfully, but these errors were encountered: