Opened 3 weeks ago
Last modified 3 weeks ago
#61911 new defect (bug)
Incorrect schema for global styles REST API endpoint
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 5.9 |
Component: | Posts, Post Types | Keywords: | good-first-bug has-patch |
Focuses: | rest-api | Cc: |
Description
The schema for the wp/v2/global-styles/{id}
REST API endpoint declares the id
property as a string, but it is in fact an integer containing the post ID for the global style.
Change History (3)
This ticket was mentioned in PR #7234 on WordPress/wordpress-develop by @narenin.
3 weeks ago
#1
- Keywords has-patch added; needs-patch removed
@johnbillion commented on PR #7234:
3 weeks ago
#2
@narenin Thanks for the PR. int
isn't a valid type in JSON schema.
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/61911