Skip to content

Request - count Restriction to validate the number of items in an array #328

@joneubank

Description

@joneubank

Summary of request

The count restriction was proposed in the conditional restrictions spec, but was never implemented. It should be added in to the dictionary spec for fields of all data types. It should also be added into the validation code.

Details

This restriction will validate that an array field has the correct number of entries. The count restriction can be a number, defining the exact number of items required, or a RangeRestriction which defines min/max values.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions