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

Add support for additionalProperties with Bool value #159

Merged
merged 3 commits into from
Jun 29, 2018

Commits on Jun 26, 2018

  1. Configuration menu
    Copy the full SHA
    3e05560 View commit details
    Browse the repository at this point in the history
  2. Support for additionalProperties with Bool value

    According to the spec ([here](https://tools.ietf.org/html/draft-wright-json-schema-validation-00#section-5.18)), `additionalProperties` can be `true` (meaning additional properties with any values) or `false` (meaning the same thing as the attribute not being present, I believe) or a schema.
    
    This commit adds a new type, `AdditionalProperties`, with custom JSON encoding to deal with that, and what appears to be reasonable validation for it.
    mossprescott committed Jun 26, 2018
    Configuration menu
    Copy the full SHA
    e725fd2 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2018

  1. Validation test for additionalProperties = true

    Tests only the simple, positive case of no other schema attributes and arbitrary unnested object values.
    mossprescott committed Jun 28, 2018
    Configuration menu
    Copy the full SHA
    42f69fd View commit details
    Browse the repository at this point in the history