json_schema v0.2.0 JsonSchema.Parser.EnumParser View Source
Parse a JSON schema enum type:
{
"type": "string",
"enum": ["none", "green", "orange", "blue", "yellow", "red"]
}
Into an JsonSchema.Types.EnumType
.
Link to this section Summary
Functions
Parses a JSON schema enum type into an JsonSchema.Types.EnumType
Returns true if the json subschema represents an enum type
Link to this section Functions
Link to this function
parse(map, parent_id, id, path, name)
View Source
parse( JsonSchema.Types.schemaNode(), URI.t(), URI.t() | nil, URI.t(), String.t() ) :: JsonSchema.Parser.ParserResult.t()
Parses a JSON schema enum type into an JsonSchema.Types.EnumType
.