fireproofsocks / dto

Data Transfer Object (DTO) in PHP using JSON Schema
77 stars 12 forks source link

Support for limiting array size #6

Closed fireproofsocks closed 7 years ago

fireproofsocks commented 8 years ago

For array types, it would be nice as a developer to have a simple way to define an array's maximum size.

TBD: behavior for when attempting to append or prepend elements onto a full array.

fireproofsocks commented 7 years ago

v3 implements the maxItems keyword. See http://json-schema.org/latest/json-schema-validation.html#rfc.section.5.10