WordPress.org

Make WordPress Core

Opened 2 months ago

#48821 new enhancement

Add additional array validation keywords to rest_validate_value_from_schema

Reported by: TimothyBlynJacobs Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: REST API Keywords:
Focuses: Cc:
PR Number:

Description

JSON Schema describes minItems, maxItems and uniqueItems keywords to assist in validating array types: https://json-schema.org/draft/2019-09/json-schema-validation.html#rfc.section.6.4.1 I think this would be helpful to add support for.

Change History (0)

Note: See TracTickets for help on using tickets.