A library for handling JSON Schema Documents.

Features

  • Easy handling of JSON Schema Documents.
  • Friendly API
  • UI optimized getters
  • Growing ecosystem of low-coupling widgets that consumes this package

Getting started

Usage

JsonSchema jsonSchema = JsonSchema.fromMap({
  "\$schema": "http://json-schema.org/draft-07/schema",
  "\$id": "http://example.com/example.json",
  "type": "object",
  "title": "The root schema",
  "description": "The root schema comprises the entire JSON document.",
  "default": {},
  "examples": [
    {"name": "Ringo", "age": 16}
  ],
  "required": ["id", "name", "age"],
  "properties": {
    "name": {
      "\$id": "#/properties/name",
      "type": "string",
      "title": "The name schema",
      "description": "An explanation about the purpose of this instance.",
      "default": "",
      "examples": ["Ringo"]
    },
    "age": {
      "\$id": "#/properties/age",
      "type": "integer",
      "title": "The age schema",
      "description": "An explanation about the purpose of this instance.",
      "default": 0,
      "examples": [16]
    }
  },
  "additionalProperties": true
});

Additional information

Learn more about JSON Schema at https://json-schema.org/

Libraries

json_schema_document
A library to handle JSON Schema Documents.
parsers/parsers