Draft 4

The draft 4 metaschema patch sets additionalProperties to false and adds the following properties to JSON Schema draft 4.

Tip

To reference the extended metaschema, use its canonical URI:

http://json-schema-extension.readthedocs.io/1__0__0/draft-04/metaschema.json

Note

The patch adds the $ref keyword which is implemented in JSON Schema draft 4, but missing from the metaschema.

Title

Description

Type

Format

Required

$ref

string

URI Reference

A reference to a statically identified schema. This keyword must be set to an absolute URI or a relative reference as defined by RFC 3986, where its fragment (if any) can consist of a JSON Pointer as defined by RFC 6901.

deprecatedDetails

object

Deprecated details

Information about the deprecation of the field.

See deprecatedDetails

codelist

string

Codelist

The CSV file that defines the codes in the codelist that the field refers to.

openCodelist

boolean

Open codelist

Whether the codelist that the field refers to is an open codelist.

This property was deprecated in version 1.0

This keyword is deprecated favour of using `enum` to indicate a closed codelist. A field refers to an open codelist when `codelist` is set without the presence of `enum`.

deprecated

object

Deprecated details

Information about the deprecation of the field.

See deprecatedDetails

This property was deprecated in version 1.0

This field is deprecated in favour of `deprecatedDetails` for forward compatibility with later versions of JSON Schema, which implement a boolean `deprecated` keyword.

deprecatedDetails

Information about the deprecation of the field.

Title

Description

Type

Format

Required

deprecatedVersion

string

Required

Version

The version in which the field was first deprecated.

description

string

Required

Description

A description of the reason for the field’s deprecation and information about its replacement, if any.