Skip to content

Field names and lack of pub from typify-generated code #3

@dpezely

Description

@dpezely

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions