Doing the model from scratch instead of converting it from typescript does have certain advantages, as I can be sure the hairier parts of it are correctly modeled.
It may be best to merge this with the csln-rs repo, so it's a hybrid process: a couple/few small files that are hand-maintained, and the rest that are generated from the typescript?
Also, the schema generation is extremely fast; like instantaneous.
I can't yet assess the quality of the conversion, but have run into these small issues with integers.
❯ ajv -s schemas/style.json -d examples/bib.yaml
schema schemas/style.json is invalid
error: unknown format "uint8" ignored in schema at path "#/properties/min"
Doing the model from scratch instead of converting it from typescript does have certain advantages, as I can be sure the hairier parts of it are correctly modeled.
It may be best to merge this with the csln-rs repo, so it's a hybrid process: a couple/few small files that are hand-maintained, and the rest that are generated from the typescript?
Also, the schema generation is extremely fast; like instantaneous.
I can't yet assess the quality of the conversion, but have run into these small issues with integers.
https://github.com/GREsau/schemars/issues/208 https://github.com/GREsau/schemars/issues/174