membrane-php / membrane-core

Membrane is a general purpose input validation library, supports both PHP Attributes and OpenAPI specifications
Other
1 stars 2 forks source link

Handle default values in Schema Objects #170

Open charjr opened 7 months ago

charjr commented 7 months ago

Schema's can have a default field. This specifies the value that will be assumed to have been passed if no value is provided.

It has some logical conflict with the required field on the Parameter Object.

We will consider the required to take precedence over default. i.e. If required is specified, a value MUST be provided.