WordPress.org

Make WordPress Core

Opened 15 months ago

Last modified 9 months ago

#38813 assigned enhancement

REST API: Test schema registration for required fields.

Reported by: rmccue Owned by: jnylen0
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: REST API Keywords: needs-unit-tests good-first-bug
Focuses: Cc:

Description

Follow-up from #38792.

For all endpoints included in WordPress core, we want to make sure arguments and parameters are consistently registered and expose a nice, stable API to the world. While we can check this manually, building it into the unit tests is even better.

@jnylen0 wrote an initial version in Node-based JS, so we can port this to PHP and use the built-in schema rather than sending a HTTP request.

Change History (3)

This ticket was mentioned in Slack in #core-restapi by kadamwhite. View the logs.


13 months ago

#2 @kadamwhite
13 months ago

  • Owner set to jnylen0
  • Status changed from new to assigned

#3 @jnylen0
9 months ago

  • Keywords good-first-bug added
Note: See TracTickets for help on using tickets.