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

Support type property as an array, according to JSON Schema Validation #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support type property as an array, according to JSON Schema Validation #13

wants to merge 1 commit into from

Commits on Mar 28, 2017

  1. Support type property as an array, according to JSON Schema Validation

    In JSON Schema, the "type" property may be a string or an array of
    strings. Previously, if type was set as array of strings (i.e., `"type":
    ["null", "array"]`) and there was also an "items" property defining
    the array as items of type "integer," then bootprint-json-schema
    would render the following:
    
        null,array
    
    Additionally, the "items" property was not rendered.
    
    The expected result for the given scenario is:
    
        null, integer[]
    
    And the "items" property should be rendered with its defintion.
    
    This supports the JSON Schema "type" as it is defined to allow an array
    of strings. If one of the strings in that array is "array," then
    `items.type` is used to render the datatype, and the "items" property is
    also rendered.
    ramsey committed Mar 28, 2017
    Configuration menu
    Copy the full SHA
    0237974 View commit details
    Browse the repository at this point in the history