Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information on creating models from json schema using datamodel-codegen #2

Open
RS-Credentive opened this issue May 24, 2023 · 2 comments

Comments

@RS-Credentive
Copy link
Owner

No description provided.

@ChrisCompton
Copy link

@RS-Credentive let me know if you would be interested in how this is generated, and if it would be helpful to what you are doing in oscal-pydantic. See: https://github.com/Compton-NIST/OSCALic/blob/main/src/oscalic/schema.py

I was experimenting with this: https://github.com/tefra/xsdata-pydantic

It is not perfect, but it might give you a boost to build out the pydantic models.

@RS-Credentive
Copy link
Owner Author

@ChrisCompton, this is very interesting! I will play with it in a VM to see what the developer experience is like. I like the idea of automatically generating the objects from XSD rather than JSON schema since I think the XSD is a complete specification of the OSCAL standard. Thanks for bringing this to my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants