mimic JSON Schema's min/maxlength for lists
Opened this issue · 0 comments
ascourtas commented
There has been user need for having a limit on the input dimensions of ndarray
's. We should emulate JSON Schema's way of implementing min and max lengths for lists https://json-schema.org/understanding-json-schema/reference/array.html#id6
Specifically, we want to add functionality such that when a user is describing a model for publication, that user (i.e. the publisher) has the ability to specify a min or max length for any of the dimensions of the list or ndarray (this should be optional).
For example, a publisher may want to specify an ndarray
input as having the shape
(<any number <= 16384>, 1, 11, 11)
where the first dimension needs to be <= 16384, and the other dimensions are exact.