Object Schema
Basic Types
Type
Description
Example
Defining a Simple Object
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The contact's full name"
},
"email": {
"type": "string",
"format": "email",
"description": "The contact's email address"
},
"age": {
"type": "integer",
"minimum": 0
}
},
"required": ["name", "email"]
}Examples
Contact Object
Using Enums
Nested Objects
Array of Objects
Annotations
Keyword
Description
Further Reading
Last updated
Was this helpful?