jsv4-php
jsv4-php copied to clipboard
coerce additional properties if additionalProperties:false by discarding them
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.