Skip to main content
The title keyword provides a short, human-readable title for a schema. It is primarily used to decorate user interfaces with information about the data described by the schema.

Syntax

The value of title must be a string.

Purpose

The title keyword is a metadata annotation that:
  • Provides a short, descriptive name for the schema
  • Enhances user interface displays with human-readable labels
  • Improves documentation readability
  • Has no effect on validation (it is purely informational)
A title should preferably be short, whereas a description provides more detailed explanation about the purpose of the instance described by the schema.

Examples

Basic Usage

This schema describes an email address field with a user-friendly title that could be displayed as a form label.

Object Property Titles

Each property has its own title that can be used to generate form labels or display names in a user interface.

API Response Schema

This schema uses titles to provide clear, business-friendly names for API response fields.

Array Schema

Both the array and its items have titles to describe what they represent.

Relationship with Description

The title and description keywords work together to provide comprehensive metadata:
  • title: Short, concise label (often used as a heading or form label)
  • description: Longer explanation of the purpose and usage