airbyte-platform/tools/openapi2jsonschema at main · Pixee-Bot-Java/airbyte-platform · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

openapi2jsonschema

Util for generating catalog schema from OpenAPI definition file. Forked from openapi2jsonschema util with fixes for generating standlone schemas e.g. ones that don't contain reference to other files/resources.

Usage

$ tools/openapi2jsonschema/run.sh <path to OpenAPI definition file>

It would generate set of JSONSchema files based on components described on OpenAPI's definition and place it in "schemas" folder in the current working directory.

Support OpenAPI v2.0, v3.0 and v3.1. Works with both JSON and Yaml OpenAPI formats.

Examples

You can try to run this tool on the sample OpenApi definition files located in examples directory. There are some OpenAPI files taken from APIs-guru repo from github.