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

Support alternative "exclusiveMinimum" and "exclusiveMaximum" #118

Open charjr opened 1 year ago

charjr commented 1 year ago

Currently supports 3.0 versions of exclusiveMinimum and exclusiveMaximum. i.e. supports bool values that pair with minimum and maximum.

3.1 changes both exclusiveMinimum and exclusiveMaximum to number values that work independently of minimum and maximum.

i.e. An exclusive maximum of 10:

In 3.0 looks like this:

maximum: 10,
exclusiveMaximum: true

In 3.1 looks like this:

exclusiveMaximum: 10

Currently Membrane does not support the number values of 3.1

Useful links: Range