bdarcus / csl-next

An experimental reimagining of CSL
Mozilla Public License 2.0
8 stars 0 forks source link

Incorrect schema output using Record #146

Open bdarcus opened 1 year ago

bdarcus commented 1 year ago

I get this warning:

Issue in line 31: quicktype cannot infer this type because there is no data about it in the input.
31:     pub templates: Option<HashMap<String, Option<serde_json::Value>>>,

... and indeed, the resulting Rust code doesn't accurately represent the model there.

Seems to be an upstream bug.

https://github.com/YousefED/typescript-json-schema/issues/547

The problem is none of the schema-generators I have tried perfectly represent the model, or just crashes.

A brute force fix on this end would be a little script that adds the missing details?