[wp-trac] [WordPress Trac] #38583: Support for objects in schema validation and sanitization
WordPress Trac
noreply at wordpress.org
Mon Oct 23 18:42:21 UTC 2017
#38583: Support for objects in schema validation and sanitization
----------------------------------------+-----------------------
Reporter: rachelbaker | Owner: rmccue
Type: enhancement | Status: reopened
Priority: high | Milestone: 4.9
Component: REST API | Version: 4.7
Severity: major | Resolution:
Keywords: has-unit-tests needs-patch | Focuses:
----------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
> Forgetting the JSON Schema spec for now (we have already diverged from
JSON Schema),
We haven't significantly diverged from JSON Schema. We are using the v3
format for required properties, but everything else is proper. I've also
been looking into supporting both v3 and v4 of required properties
transparently.
If we want to make `additionalProperties => false` the default everywhere,
I'd be ok with that provided we allow a developer to pass their own
`additionalProperties` value and it appears as `additionalProperties =>
false` in the schema.
If we agree on that, I can work up a patch to support that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38583#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list