smart-data-models / data-models

Data Models in common use based on real world use-cases. These definitions underpin a digital market of interoperable and replicable smart solutions.
https://smartdatamodels.org/
115 stars 56 forks source link

How to automatically generate the model.yaml and swagger.yaml #36

Closed dzgrief closed 2 years ago

dzgrief commented 2 years ago

Is there any tool or script that can automatically generate model.yaml file from schema.json?

Is the swagger.yaml file automatically generated from model.yaml and schema.json?

image image
albertoabellagarcia commented 2 years ago

yes we have couple of scriptsfor the creation of the model.yaml and for the swagger.yaml.

albertoabellagarcia commented 2 years ago

you have now published the scripts (they are not meant for sharing the code, so they are not properly documented). in this folder https://github.com/smart-data-models/data-models/tree/master/utils you have the script starting with 10 for the model generation and the one starting by 50 of the swagger generation. Additionally you have a version for the creation of the documentation (the one starting with 20)

albertoabellagarcia commented 2 years ago

I'll be glad to know more what you need please send me an email at info@smartdatamodels.org