You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agreed that we'll need a solution if we migrate off of schemars. In exploring this, I've observed that there's significant opportunity to improve upon the types from schemars. I've been exploring generating the types using the schema files for various JSON Schema drafts in a sort of bootstrapping mode for typify. This work is wrapped up with a prototype for multi-file support, improved errors, etc.
While the offer is appreciated, I'll decline for now. And even when schemars 1.0 does come out, I think that typify can safely stay with 0.8. Thank you!
schema files for various JSON Schema drafts in a sort of bootstrapping mode for typify.
why only boostrap? why not improve typify until generated code is good enough for typify itself?
By "bootstrap" I mean, make a minimal schema to consume the 2020-12 meta schema (which schemars cannot) and then do as you say: use typify output as the actual structures to represent various JSON schema drafts.
Activity
ahl commentedon Jan 19, 2025
Agreed that we'll need a solution if we migrate off of schemars. In exploring this, I've observed that there's significant opportunity to improve upon the types from schemars. I've been exploring generating the types using the schema files for various JSON Schema drafts in a sort of bootstrapping mode for typify. This work is wrapped up with a prototype for multi-file support, improved errors, etc.
While the offer is appreciated, I'll decline for now. And even when schemars 1.0 does come out, I think that typify can safely stay with 0.8. Thank you!
dzmitry-lahoda commentedon Aug 5, 2025
schemars: i made design more cleaner
oxide: oh, let copy paste bad design and maintain it, why would we ever think just migrate?
you can use
schemars1feature for migrationahl commentedon Aug 5, 2025
@dzmitry-lahoda I'm not sure I follow your point. Schemars removed the structures we use to deserialize json schema.
dzmitry-lahoda commentedon Aug 5, 2025
so getting off schemars and maintain something own?
while could
curl https://json-schema.org/draft/2020-12/meta/meta-data | typify > metadata.rslike thinkg,
with
Metastruct market withschemarsattributes.up until
https://json-schema.org/draft/2020-12/schema.why only boostrap? why not improve typify until generated code is good enough for typify itself?
ahl commentedon Aug 5, 2025
By "bootstrap" I mean, make a minimal schema to consume the 2020-12 meta schema (which
schemarscannot) and then do as you say: use typify output as the actual structures to represent various JSON schema drafts.dzmitry-lahoda commentedon Sep 3, 2025
seems some of my deps migrated to 1(aide, serde_with), will donate to anybody for migration PR(when merged) 43 USD equivalent in crypto
eveeifyeve commentedon Sep 13, 2025
It seems like they moved to Schema and removed all the types because it was becoming cluttered.
And schema just calls now serde_json::Value
webern commentedon Aug 10, 2026
I would suggest closing this in favor of #886 which has more discussion.