Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI produces incorrect Rust code #153

Open
matzipan opened this issue Dec 13, 2023 · 1 comment · May be fixed by #161
Open

CLI produces incorrect Rust code #153

matzipan opened this issue Dec 13, 2023 · 1 comment · May be fixed by #161

Comments

@matzipan
Copy link

Using the following xsd file: ttps://sanaregistry.org/files/ndmxml_unqualified/ndmxml-3.0.0-opm-3.0.xsd

Command run: cargo run --bin xsd-parser -- -i ndmxml-3.0.0-opm-3.0.xsd

Git commit: 7c31c6e3e2ba21d2bc80aea93178a4aa276bb1ec.

On line 133, the following code is produced:

    #[derive(PartialEq, Debug, YaSerialize, YaDeserialize)]#[yaserde(prefix = "ndm", namespace = "ndm: urn:ccsds:schema:ndmxml")]

Note the missing new line.

@lkirkwood lkirkwood linked a pull request Apr 20, 2024 that will close this issue
@lkirkwood
Copy link
Contributor

This code compiles with (at least with rustc 1.75.0) so it is not incorrect.
It does look wrong though, so I submitted #161 to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants