media-io / xml-schema

Generate rust code (structures and enum) from XSD
MIT License
53 stars 29 forks source link

Handle keywords as field and type names #22

Closed cschramm closed 1 year ago

cschramm commented 2 years ago

Names in the schema that match Rust keywords (in their lowercase version) did not work except for "type" for which some hacks where in place.

We could do the same for struct names but as they are CamelCase (actually rather PascalCase) they should not match keywords anyway.

The yaserde update is necessary to get the fix from https://github.com/media-io/yaserde/pull/93.

MarcAntoine-Arnaud commented 1 year ago

updates already merged by other contributions