json_schema_document 0.0.4 icon indicating copy to clipboard operation
json_schema_document: ^0.0.4 copied to clipboard

A library for handling JSON Schema Documents.

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/

0
likes
120
pub points
46%
popularity

Publisher

verified publisher iconlapada.ifce.edu.br

A library for handling JSON Schema Documents.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on json_schema_document