jsv4-php icon indicating copy to clipboard operation
jsv4-php copied to clipboard

coerce additional properties if additionalProperties:false by discarding them

Open qyanu opened this issue 9 years ago • 0 comments

I would consider it best-practice to not drag along unwanted properties the client might send. At the same time a strict API rejecting the whole json might not what best suits a particular project.

this pull request proposes to give the programmer the additional choice to coerce the client-json into complying by inelegantly unsetting the offending property.

qyanu avatar Jun 29 '16 15:06 qyanu