tuffnatty / xsd_to_django_model

Generate Django models from an XSD schema description (and a bunch of hints)
GNU General Public License v3.0
25 stars 11 forks source link

Question: how to pick `xsd_type`? #11

Closed jamesbraza closed 9 months ago

jamesbraza commented 1 year ago

I am trying to convert https://ftp.expasy.org/databases/cellosaurus/cellosaurus.xsd to a Django model.

I am not sure what to enter for xsd_type. The below is not working out for me:

xsd_to_django_model.py cellosaurus.xsd /Cellosaurus

Any pointers on how to pick xsd_type?

tuffnatty commented 1 year ago

Hi @jamesbraza . You did the right thing. The XSD itself is not very simple, somewhat buggy, and have hit some edge cases with xsd_to_django_model, so I decided to fix the stuff and add it as an example here: https://github.com/tuffnatty/xsd_to_django_model/tree/master/examples/cellosaurus

jamesbraza commented 1 year ago

Wow, that is so awesome @tuffnatty, thank you!! I will take a look at this next week, appreciate you for fixing this up and making that example

jamesbraza commented 9 months ago

Thanks again @tuffnatty for your help with this, closing this out