json-schema-to-openapi-schema icon indicating copy to clipboard operation
json-schema-to-openapi-schema copied to clipboard

A little NodeJS package to convert JSON Schema to OpenAPI Schema Objects

Results 14 json-schema-to-openapi-schema issues
Sort by recently updated
recently updated
newest added

Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.6.2 to 6.12.6. Release notes Sourced from ajv's releases. v6.12.6 Fix performance issue of "url" format. v6.12.5 Fix uri scheme validation (@​ChALkeR). Fix boolean schemas with strictKeywords...

dependencies

It's clear within the `package.json`, but to allow easier means of determining the license of this project, we should add a `LICENSE` file.

Hi, does this routine support the definitions keyword as described in the [JSON Schema documentation](https://json-schema.org/draft-04/json-schema-core.html)? Using json-schema-to-openapi-schema, converting a JSON Schema with a "definitions" property does not seem to handle...

## Description This adds support for draft-6 examples. Since OpenAPI only supports single examples this transform takes the first example from the array of examples and sets that as the...

First time using this, is this backwards compatible with json schema draft 04?

I am trying to find a workaround for #26. This time, I tried creating a "nullable_schema" with `type=["null", "object"]` and then extending it in a different schema with `type="object"`. ####...

I am trying to convert a json schema that should either be `null` or a `$ref` to another object. In this case the reference is just a simple `string` but...

I wanted to convert the JSON schema [here](https://github.com/Microsoft/CDM/blob/fa266f72bd36c94cf5acf8e9d6150e27284a080f/schemaDocuments/core/applicationCommon/foundationCommon/Product.cdm.json), but I get an error message: > D:\Repos\swagger-editor\node_modules\@cloudflare\json-schema-walker\lib\schemaWalk.js:92 > throw 'Expected object or boolean as schema, got ' + > ^ >...

Thanks for writing this library and the blog posts. I find myself needing a version of this library in Go. I wonder if you know anything about it. I did...

We want to convert JSON Schema to OAI 3.0. Your package seems to be the perfect solution for us. Everything works perfectly with the exception of examples which have been...