[wp-trac] [WordPress Trac] #64955: Add schema compiler for AI tool calling compatibility
WordPress Trac
noreply at wordpress.org
Thu May 28 08:14:46 UTC 2026
#64955: Add schema compiler for AI tool calling compatibility
--------------------------------------+-----------------------
Reporter: gziolo | Owner: gziolo
Type: enhancement | Status: assigned
Priority: normal | Milestone: 7.1
Component: Abilities API | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: rest-api
--------------------------------------+-----------------------
Comment (by gziolo):
In [changeset:"62427" 62427]:
{{{
#!CommitTicketReference repository="" revision="62427"
Abilities API: Harden ability schema preparation for REST responses
Merge `normalize_schema_empty_object_defaults()` and
`strip_internal_schema_keywords()` into a single recursive
`prepare_schema_for_response()` helper on
`WP_REST_Abilities_V1_List_Controller`. Empty object defaults now
normalize to `stdClass` at every depth — not just the top level — so
nested `{}` defaults serialize consistently alongside the existing
internal-keyword stripping.
Follow-up to [62221], [61244].
Props gziolo, westonruter.
See #64955.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64955#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list