Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Document convention around returning null for known-but-undefined values #174

Open
kadamwhite opened this issue Sep 13, 2016 · 0 comments
Open

Comments

@kadamwhite
Copy link
Contributor

See WP-API/WP-API#2657 for the relating discussion: One of the conventions of the WordPress REST API is that if a value is undefined for a specific key that should be part of a response, the API should provide null as the value for that key. Receiving a null value therefore means, "we know and understand this field, and it lacks a value".

@kadamwhite kadamwhite mentioned this issue Sep 13, 2016
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant