tefra / xsdata

Naive XML & JSON Bindings for python
https://xsdata.readthedocs.io
MIT License
319 stars 58 forks source link

Parsing JSON schema ends in not expected result #1069

Open vvmruder opened 1 month ago

vvmruder commented 1 month ago

Hi and thank you for this genious library. I play around with it for a while mostly with XML and it is a solid piece of code :rock:

However lately I got a JSON schema which I wanted to play araound with and got unexpected output.

pygeoapi-config-0.x.json pygeoapi.zip

For some reason all Properties are combined in one class and linked everywhere since properties are defined for almost every definition.

It is perfectly possible that I did something wrong but I don't know what.

The command I used to generate the classes was:

xsdata generate -p server /tmp/pygeoapi-config-0.x.json

I would expect that each properties section is handled as actually properties of the element. I found also https://github.com/tefra/xsdata/issues/684 and was expecting it was solved.

Am I missing something here?

tefra commented 1 month ago

xsdata doesn't support json schemas @vvmruder

vvmruder commented 3 weeks ago

Thank you @tefra. Are there any future developments planned for that?

tefra commented 2 weeks ago

Things are kinda slow lately, idk maybe :)