ndto_parser_json_schema_draft_04 (ndto v0.3.1)

View Source
A ndto parser for draft-04 JSON Schema specifications.

Summary

Functions

Parses a JSONSchema draft-04 specification into a list of ndto:schema() values.

Functions

parse(Spec, CTX)

-spec parse(Spec, CTX) -> Result
               when
                   Spec :: ndto_parser_json_schema:spec(),
                   CTX :: ndto_parser_json_schema:ctx(),
                   Result :: {Schema, ExtraSchemas, NewCTX},
                   Schema :: ndto:schema(),
                   ExtraSchemas :: [{ndto:name(), ndto:schema()}],
                   NewCTX :: ndto_parser_json_schema:ctx().
Parses a JSONSchema draft-04 specification into a list of ndto:schema() values.