cebe / php-openapi

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

Refine default value for `nullable` property in Schema #131

Closed cebe closed 2 years ago

cebe commented 2 years ago

Looks like the default value of nullable should depend on whether type is set.

A true value adds "null" to the allowed type specified by the type keyword, only if type is explicitly defined within the same Schema Object.

See also discussion at: