datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

Support for XML Schema to Pydantic Models

Open alexiswl opened this issue 11 months ago • 1 comments

Would it be possible to support .xsd files to data models?

It hasn't been trivial converting xsd to json schema in order to import into pydantic, so a native xsd parser would be very much appreciated!

alexiswl avatar Feb 28 '24 08:02 alexiswl

Thank you for creating the issue. I needed to find out the details of the .xsd . However, we can implement parsers like JSON schema, OpenAPI, and GraphQL. https://github.com/koxudaxi/datamodel-code-generator/tree/main/datamodel_code_generator/parser

koxudaxi avatar Apr 23 '24 16:04 koxudaxi