Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#51023 closed enhancement (fixed)

Add support for the minProperties and maxProperties JSON Schema keywords

Reported by: TimothyBlynJacobs Owned by:
Priority: normal Milestone: 5.6
Component: REST API Version: 4.7
Severity: normal Keywords: good-first-bug json-schema has-patch has-unit-tests
Cc: Focuses:

Description

Arrays support the minItems and maxItems keywords. The minProperties and maxProperties can be used for objects as well. This is helpful when you are using additionalProperties to have a list of objects with unique keys.

Reference: ​https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.4.1

Change History (5)

This ticket was mentioned in ​PR #542 on ​WordPress/wordpress-develop by ​yakimun.


6 years ago
#1

  • Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed

Added support for the minProperties and maxProperties JSON Schema keywords.

Trac ticket: https://core.trac.wordpress.org/ticket/51023

#2 @TimothyBlynJacobs
6 years ago

  • Milestone Future Release → 5.6
  • Version → 4.7

This is great! Thanks for the patch @yakimun!

​TimothyBJacobs commented on ​PR #542:


6 years ago
#3

Merged in d5c2c86.

#4 @TimothyBlynJacobs
6 years ago

In 49054:

REST API: Correct @since version after [49053].

See #51023.

#5 @TimothyBlynJacobs
6 years ago

  • Resolution → fixed
  • Status new → closed
Note: See TracTickets for help on using tickets.