Bad JSON schema? A typify codegen bug? serde-json issue?
⚓ Rust 📅 2026-01-13 👤 surdeus 👁️ 1Exercising code generated by typify from W3C's mnx-schema.json doesn't behave as expected-- as the generated docs imply that it should.
While I've modified JSON schema before, I'm still learning when it comes to the level of complexity in the MNX schema and would like some help.
My branch demonstrates a parse failure of MNX "tuplets". Newer integration tests within the branch's tests/canary.rs pass with existing/known behavior.
The repo exercises typify's PR 912 using the W3C schema, and tests are using their examples.
More details and instructions (e.g., git submodule for W3C's repo) are in the branch's README.
Possible scenarios:
- bad JSON schema?
- serde-json issue?
cargo typifycodegen bug?- other?
W3C's MNX is a work-in-progress but at a stage where they're mainly adding functionality, and their tooling is reported to be sufficiently robust.
Any help in pruning the problem space would be greatly appreciated! Which of those enumerated points above can be ruled-out? Maybe something is obvious to you that eludes me?
In the meantime, any suggestions for a good tutorial on non-trivial JSON schema? I would like to create a minimal excerpt of this schema and am embarking on that learning curve now.
Thanks!
1 post - 1 participant
🏷️ Rust_feed