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 oftitle must be a string.
Purpose
Thetitle 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)
description provides more detailed explanation about the purpose of the instance described by the schema.
Examples
Basic Usage
Object Property Titles
API Response Schema
Array Schema
Relationship with Description
Thetitle 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