Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: Drop pointers and nulls #662

Merged
merged 1 commit into from
Feb 6, 2017

Commits on Jan 23, 2017

  1. schema: Drop pointers and nulls

    Maintainers feel (and I agree) that there's no point in explicitly
    allowing a null value when callers can simply leave the property unset
    [1].  This commit removes all references to "pointer" and "null" from
    the JSON Schema to support that decision.  While optional properties
    may sometimes be represented as pointer types in Go [2], optional
    properties should be represented in JSON Schema by not including the
    properties in the 'required' array.
    
    [1]: opencontainers#555 (comment)
    [2]: style.md "Optional settings should not have pointer Go types"
    
    Signed-off-by: W. Trevor King <wking@tremily.us>
    wking committed Jan 23, 2017
    Configuration menu
    Copy the full SHA
    0927437 View commit details
    Browse the repository at this point in the history