Skip to content

REST API: Don't assume all item schemas have properties.#160

Closed
TimothyBJacobs wants to merge 2 commits intoWordPress:masterfrom
TimothyBJacobs:ticket/48785
Closed

REST API: Don't assume all item schemas have properties.#160
TimothyBJacobs wants to merge 2 commits intoWordPress:masterfrom
TimothyBJacobs:ticket/48785

Conversation

@TimothyBJacobs
Copy link
Copy Markdown
Member

All schema types, not just objects, are permitted as the base type of a resource.

A future patch could add validation support for those types, but this fix only prevents a PHP warning from being issued.

Props dhavalkasvala, johnwatkins0, birgire.
Fixes #48785.

All schema types, not just objects, are permitted as the base type of a resource.

A future patch could add validation support for those types, but this fix only prevents a PHP warning from being issued.

Props dhavalkasvala, johnwatkins0, birgire.
Fixes #48785.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant