WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 9 months ago

#51023 closed enhancement (fixed)

Add support for the minProperties and maxProperties JSON Schema keywords

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

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.


9 months ago

  • 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
9 months ago

  • Milestone changed from Future Release to 5.6
  • Version set to 4.7

This is great! Thanks for the patch @yakimun!

#3 @prbot
9 months ago

TimothyBJacobs commented on PR #542:

Merged in d5c2c86.

#4 @TimothyBlynJacobs
9 months ago

In 49054:

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

See #51023.

#5 @TimothyBlynJacobs
9 months ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.