PackageDescription | at http://json-schema.org is an IETF draft (at time of writing) which
allows you to define the structure of JSON.
From the overview of the draft 2020-12 version of the
specification|https://json-schema.org/draft/2020-12/json-schema-core.html#r
fc.section.3:
This document proposes a new media type "application/schema+json" to
identify a JSON Schema for describing JSON data. It also proposes a
further optional media type, "application/schema-instance+json", to
provide additional integration features. JSON Schemas are themselves
JSON documents. This, and related specifications, define keywords
allowing authors to describe JSON data in several ways.
JSON Schema uses keywords to assert constraints on JSON instances or
annotate those instances with additional information. Additional
keywords are used to apply assertions and annotations to more complex
JSON data structures, or based on some sort of condition.
This module allows other perl modules (for example JSON::Schema) to test
that they are JSON Schema-compliant, by running the tests from the official
test suite, without having to manually convert them to perl tests.
You are unlikely to want this module, unless you are attempting to write a
module which implements JSON Schema the specification, and want to test
your compliance. |