Chris Tsou

Results 11 issues of Chris Tsou

The default generator has to remain compatible with all python versions, but someone could use https://github.com/asottile/pyupgrade to upgrade to 3.10 syntax. ```python Foo | Bar instead of typing.Union[Foo, Bar] FooBar...

Let's add proper model validations...

Currently we generate compound fields only when it's absolutely necessary in order to maintain elements ordering between roundtrips. It would be nice to have an option to always group together...

wip

Restricting complex/simple content with enumeration doesn't play nicely with mypy from #661 ``` mypy generali/models generali/models/com/generali/enterprise_services/core/gbo/common/v1/uom_temperature_code_type.py:14: error: Incompatible types in assignment (expression has type "Optional[UomTemperatureCodeTypeValue]", base class "CodeType" defined the...

It would be great if you could skip all persistent parameters all together instead of trying to set one by one as null, something like a reset flag you could...

enhancement
net

The new type annotations for compound fields can generate this ```python @dataclass class Node: class Meta: name = "node" node_or_id: List[Union["Node", str]] = field( default_factory=list, metadata={ "type": "Elements", "choices": (...

We started using ruff to format the output code. I wanted to also use ruff for linting as this would allow me replace the union types/ subscriptable types, the imports...

It seems that most restrictions are in the dataclass, but minOccurs and maxOccurs are not. See the example: ``` ``` becomes: ``` @dataclass class Functions: class Meta: name = "functions"...

## 📒 Description During parsing we need to attach the class & field name, otherwise the converter warnings are not very useful for troubleshooting. Resolves #971 ## 🔗 What I've...

Currently the parser/converter errors don't include any information regarding the tree/node making it difficult to troubleshoot things. Mentions https://github.com/tefra/xsdata/pull/608 https://github.com/tefra/xsdata/issues/610 https://github.com/tefra/xsdata/issues/636