[wp-trac] [WordPress Trac] #64252: Fix: Core abilities schemas.
WordPress Trac
noreply at wordpress.org
Fri Nov 14 16:47:48 UTC 2025
#64252: Fix: Core abilities schemas.
------------------------------------+-------------------------------
Reporter: jorgefilipecosta | Owner: jorgefilipecosta
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-------------------------------
Comment (by jorbin):
> They have examples on the schema with is not complient with the version
draft-04 of schema JSON we are using.
Is this something that we can have a test to ensure there isn't an issue
in the future?
> The top level defaults are defined as an empty array and they are of
type object, but a php empty array gets JSON serialized and returned in
the rest API as [] instead of {}, causing problems on the client
validation.
Is this an issue with any other REST endpoints? Should it be fixed in a
more global manner rather than in a single endpoint?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64252#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list