Download the PHP package hskrasek/openapi-schema-to-json-schema without Composer
On this page you can find all versions of the php package hskrasek/openapi-schema-to-json-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package openapi-schema-to-json-schema
OpenAPI Schema to JSON Schema Converter
This is PHP port of the Node package by the same name, so huge props to Github user mikunn for the work he did. This package currently converts from OpenAPI 3.0 to JSON Schema Draft 4.
Features
- converts OpenAPI 3.0 Schema Object to JSON Schema Draft 4
- converts common named data types to
typeandformat- for example
type: "dateTime"becomestype: "string"withformat: "date-time"
- for example
- deletes
nullableand adds"null"totypearray ifnullableistrue - supports deep structures with nested
allOfs etc. - removes OpenAPI specific properties such as
discriminator,deprecatedetc. unless specified otherwise - optionally supports
patternPropertieswithx-patternPropertiesin the Schema Object
NOTE: $refs are not dereferenced. Use a dereferencer such as json-schema-ref-parser prior to using this package.
Install
Via Composer
Usage
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Hunter Skrasek
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of openapi-schema-to-json-schema with dependencies
league/flysystem Version ^1.0
league/json-reference Version dev-master
league/pipeline Version ^0.3.0
symfony/console Version ~3.3 | ^4.0
symfony/property-access Version ^4.0
symfony/property-info Version ^4.0
symfony/serializer Version ^4.0
symfony/yaml Version ^4.0