[wp-trac] [WordPress Trac] #51757: REST API: Add const validation
WordPress Trac
noreply at wordpress.org
Thu Nov 12 02:50:37 UTC 2020
#51757: REST API: Add const validation
-----------------------------------+------------------------------
Reporter: ajlende | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch json-schema | Focuses:
-----------------------------------+------------------------------
Changes (by TimothyBlynJacobs):
* keywords: has-patch => has-patch json-schema
Comment:
Thanks for the ticket @ajlende! I totally agree with the value of
supporting this keyword.
The one thing to consider, though, is that we advertise as JSON Schema v4.
`const` is a v6 keyword. There are breaking changes in v6. So I'm not sure
what this process would look like yet.
https://json-schema.org/draft-06/json-schema-release-notes.html
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51757#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list