[wp-trac] [WordPress Trac] #64926: REST API: GET requests fail object/array schema validation when params are JSON-serialized strings
WordPress Trac
noreply at wordpress.org
Thu Mar 26 13:03:12 UTC 2026
#64926: REST API: GET requests fail object/array schema validation when params are
JSON-serialized strings
-------------------------+-------------------------------------------------
Reporter: dsmy | Owner: (none)
Type: defect | Status: new
(bug) |
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript, rest-api, php-
| compatibility
-------------------------+-------------------------------------------------
Comment (by zieladam):
@dsmy would you be willing to share more information about your use-case?
While I don't have enough context off-hand to comment on possible
solutions, I'm thinking that it is weird there is no historical solution
for this. I wonder whether the REST API was intended for handling complex
inputs via GET requests, or was the intention to always use POST. Is it
just a documentation issue? POST requests are not subject to HTTP caching,
for example, which wouldn't make sense for uniquely generated pages
parametrized by complex JSON structures. POST requests also behave
differently under CORS etc. etc. Knowing more about your project would be
a very helpful framing for this discussion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64926#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list