Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSON schema enumerated type

{
    "type": "array",
    "items": {
        "type": "string",
        "enum": ["one", "two", "three"]
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JSON #schema #enumerated #type
ADD COMMENT
Topic
Name
4+9 =