There's a PR for typify with a fix plus an issue highlighting a work-around when converting W3C's mnx-schema.json file.
Both might be of interest to you and those who use your crate:
Even if that PR is inadequate for them to merge, it works specifically for the MNX schema.
Likewise, if the issue linked above doesn't get resolved soon, it's an easy 1-liner:
sed -i -E 's%^(pub struct) (OttavaAmount(|OrZero)|TimeSignatureUnit).i64.%\1 \2(pub i64)%' mnx.rs
(That's suitable for Linux. If on BSD or macos, remember that -i takes an argument such as _ORIG for renaming original file.)
There's a PR for typify with a fix plus an issue highlighting a work-around when converting W3C's mnx-schema.json file.
Both might be of interest to you and those who use your crate:
puboxidecomputer/typify#913subtype_{idx}oxidecomputer/typify#912Even if that PR is inadequate for them to merge, it works specifically for the MNX schema.
Likewise, if the issue linked above doesn't get resolved soon, it's an easy 1-liner:
sed -i -E 's%^(pub struct) (OttavaAmount(|OrZero)|TimeSignatureUnit).i64.%\1 \2(pub i64)%' mnx.rs(That's suitable for Linux. If on BSD or macos, remember that
-itakes an argument such as_ORIGfor renaming original file.)