softprops / openapi

openapi schema serialization for rust
MIT License
128 stars 61 forks source link

Allow additionalProperties to take Boolean values #49

Closed pluehne closed 3 years ago

pluehne commented 3 years ago

The OpenAPI specification defines the additionalProperties field according to the JSON schema specification. In the version of the JSON schema specification referenced by the OpenAPI specification, the value of additionalProperties may be either Boolean or a schema (though it appears that newer versions of the JSON schema specification no longer allow Boolean values).

However, to comply with OpenAPI 3.0, this adjusts the representation of the additionalProperties field in this crate accordingly