[wp-trac] [WordPress Trac] #64955: Add schema compiler for AI tool calling compatibility
WordPress Trac
noreply at wordpress.org
Mon Jun 1 12:13:30 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:"62441" 62441]:
{{{
#!CommitTicketReference repository="" revision="62441"
Abilities API: Add coverage for top-level `required` in input validation
Add a data-provider-driven test documenting that a `required` flag at the
root of a schema is never consulted by `WP_Ability::validate_input()`:
* top-level `required: true`/`false` is inert; only `type` is enforced,
and `false` does not permit `null`.
* a draft-04 `required` array on an object type is honored and enforces
property presence.
Also remove the inert top-level `required => true` flags from simple-type
test schemas, keeping the meaningful per-property flags. Test-only change.
Follow-up [61032], #64098.
See #64955.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64955#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list