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

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

@kadamwhite

Description

@kadamwhite

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions