Open Marwes opened 6 years ago
This is one that I noticed happening a lot as well.
Inline structs are handled at https://github.com/Marwes/schemafy/blob/7871e2152e0f827ce8c0f6901fb1220eb5b9f35d/src/lib.rs#L351-L360 .
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).
From https://github.com/Marwes/schemafy/blob/master/tests/vega/vega.json
BarConfig
gets assigned the typeOption<String>
instead of a specific enum type.