title : String

title

String

A preferably short description about the purpose of the instance described by the schema.

Value This keyword must be set to a string Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
Kind Annotation
Applies To Any
Base Dialect Draft 7
Changed In None
Introduced In Draft 1
Vocabulary Validation
Specification https://json-schema.org/draft-07/draft-handrews-json-schema-validation-01#rfc.section.10.1
Metaschema http://json-schema.org/draft-07/schema#
Official Tests None
Default None
Annotation None
Affected By None
Affects None
Also See

The title keyword is a placeholder for a concise human-readable string summary of what a schema or any of its subschemas are about. This keyword is merely descriptive and does not affect validation.

Examples

A schema that declares a top level title Schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Even Number",
  "type": "number",
  "multipleOf": 2
}
Valid An even number value is valid Instance
10
Invalid An odd number value is invalid Instance
7
A schema that declares conditional refined titles for the same instance location Schema
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Number",
  "type": "number",
  "if": { "multipleOf": 2 },
  "then": { "title": "Even Number" },
  "else": { "title": "Odd Number" }
}
Valid An even number value is valid Instance
10
Valid An odd number value is valid Instance
7
Invalid A non-number value is invalid Instance
"Hello World"