Opened 4 years ago
Closed 4 years 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.
4 years ago
#1
- Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed
#2
@
4 years ago
- Milestone changed from Future Release to 5.6
- Version set to 4.7
This is great! Thanks for the patch @yakimun!
TimothyBJacobs commented on PR #542:
4 years ago
#3
Merged in d5c2c86.
Note: See
TracTickets for help on using
tickets.
Added support for the minProperties and maxProperties JSON Schema keywords.
Trac ticket: https://core.trac.wordpress.org/ticket/51023