Releases: mikunn/openapi-schema-to-json-schema
Releases · mikunn/openapi-schema-to-json-schema
v2.2.0
Add
fromParameter
function to convert OpenAPI Parameter object to JSON schema- OpenAPI formats
int32
,int64
,float
anddouble
getminimum
andmaximum
values in the output JSON schema to restrict the possible value range - OpenAPI format
byte
getspattern
in the output JSON schema to loosely enforce base64 encoded string
Fix
InvalidTypeError
was not displayed correctly
v2.1.0
v2.0.0
Change
Drop data type conversion from Common Names to type/format.
In previous version e.g. type: "dateTime"
was converted to type type: "string"
with format: "date-time"
. In this version type
and format
are left untouched.
v1.2.0
v1.1.0
Add option keepNotSupported
(array) to retain selected fields that are not supported by JSON Schema Draft 4 and are otherwise removed from the result schema.
The fields are as follows: nullable
, discriminator
, readOnly
, writeOnly
, xml
, externalDocs
, example
and deprecated
.
Initial release
Changed from version 0.2.5:
- default handler of patternProperties will change the value of
additionalProperties
(if present) tofalse
if theadditionalProperties
object is deeply equal to to one of the patterns inpatternProperties