cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
466 stars 88 forks source link

Support for default values #11

Closed cebe closed 5 years ago

cebe commented 5 years ago

Schema Object $additionalProperties can be bool and the default value ( if not specified ) is true. This should result in Schema->additionalProperties to return true. It currently returns null.

https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#properties