cancel
Showing results for 
Search instead for 
Did you mean: 

SwaggerHub Domain object to JSON schema

Highlighted
New Contributor

SwaggerHub Domain object to JSON schema

Hi ,

Is there a feature to convert Swagger Hub domain object to JSON Schema? or is this a manual process?

And also which version of draft json schema is supported by open api 3.0.0?

 

Thanks,

Sandy 

 

3 REPLIES 3
Highlighted
Moderator

Re: SwaggerHub Domain object to JSON schema

Hi Sandy,

 

OpenAPI 3.0 uses an extended subset of JSON Schema Wright Draft 00 aka Draft 5.

 

SwaggerHub does not have a way to convert Domains to JSON Schemas. However, third-party OpenAPI-to-JSON Schema converters exist that might be able to do that.


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
New Contributor

Re: SwaggerHub Domain object to JSON schema

Thanks Helen. That’s useful info. Having done bit of reading json schema draft 8 is the latest and apparently there has been lot of deviations from draft 5 . Not ideal when we look to standardise and design interoperable APIs .
Highlighted
Moderator

Re: SwaggerHub Domain object to JSON schema

Hi Sandy,

 

It is likely that OpenAPI version 3.1 (next minor update) will adopt the latest JSON Schema draft 2019-09. You can track this PR in the OpenAPI Specification repository for details:

https://github.com/OAI/OpenAPI-Specification/pull/1977


Helen Kosova
SmartBear Technical Writer
________________________

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video: