Add - `fromParameter` function to convert OpenAPI Parameter object to JSON schema - OpenAPI formats `int32`, `int64`, `float` and `double` get `minimum` and `maximum` values in the output JSON schema to restrict the possible value range - OpenAPI format `byte` gets `pattern` in the output JSON schema to loosely enforce base64 encoded string
Fix - `InvalidTypeError` was not displayed correctly
2.1.0
Change
If an invalid type (other than `integer`, `number`, `string`, `boolean`, `object` or `array`) is encountered, throws `InvalidTypeError` to help building valid schemas.
2.0.0
Change Drop data type conversion from [Common Names to type/format](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.mddataTypes).
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.
1.2.0
Add `removeReadOnly` and `removeWriteOnly` options.
1.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`.