Forum Discussion

vericomms's avatar
vericomms
New Contributor
2 years ago
Solved

Generate JSON Schemas

Is it possible to generate database (JSON) schemas based on swagger definitions?. Thanks. 

  • If the schema is used in any API you can Export the API in "Json Resolved" format and the flat file will contain the schema in json format. 

     

    converting that json schema to a suitable database schema is not something SwaggerHub can do, but there are open source tools that might help. Google "dashjoin" they do very cool stuff like this, 

2 Replies

  • If the schema is used in any API you can Export the API in "Json Resolved" format and the flat file will contain the schema in json format. 

     

    converting that json schema to a suitable database schema is not something SwaggerHub can do, but there are open source tools that might help. Google "dashjoin" they do very cool stuff like this, 

  • vericomms's avatar
    vericomms
    New Contributor

    Thanks for your response Micheál.

     

    Currently I'm unable to confirm this from the third-party. However, I have since found an article on this topic advising to use the online tool jsonschema.net to generate database json schema from the (json) response schema. Do you think that's plausible?

     

    Cheers.