When using xsdata 24.5, nested group references that are placed in a complex type are unable to be generated when using --unnest-classes. If --unnest-classes is not provided, the classes are successfully generated.
This is a regression from 24.4, where dataclasses can be generated from the same schema. Based on a git bisect, the regression was introduced by #1016.
Below is an example schema, and the error produced when using --unnest-classes with 24.5. The dataclasses produced by 24.4 are also provided for comparison.
When using xsdata 24.5, nested group references that are placed in a complex type are unable to be generated when using
--unnest-classes
. If--unnest-classes
is not provided, the classes are successfully generated.This is a regression from 24.4, where dataclasses can be generated from the same schema. Based on a git bisect, the regression was introduced by #1016.
Below is an example schema, and the error produced when using
--unnest-classes
with 24.5. The dataclasses produced by 24.4 are also provided for comparison.Example schema:
Error using 24.5 (
xsdata generate schema.xsd --unnest-classes
):Output dataclasses in 24.4 (
xsdata generate schema.xsd --unnest-classes
):