v1.0.0
Example of an OpenAPI document different schemas
Get a parent
Get the root object
GET
/multiple-levels
Example of a JSON object with multiple levels.
Responses
Example of a deeply nested structureSchema JSON JSON
application/json
{
"id": "string",
"level2": {
"id": "string",
"level3": {
"id": "string",
"level4": {
"id": "string",
"level5": {
"id": "string",
"level6": {
"id": "string",
"level7": {
"id": "string",
"level8": {
"id": "string",
"level9": {
"id": "string",
"level10": {
"id": "string",
"level11": {
"id": "string",
"level12": {
"id": "string",
"level13": {
"id": "string",
"level14": {
"id": "string",
"level15": {
"id": "string",
"level16": {
"id": "string",
"level17": {
"id": "string",
"level18": {
"id": "string",
"level19": {
"id": "string",
"level20": {
"id": "string",
"finalValue": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Get a mixed array with prefixItems and items
GET
/mixed-array
Example of a JSON array with both prefixItems and items schemas.
Responses
An array with fixed positions followed by additional itemsSchema JSON JSON
application/json
[
"user-id-123",
{
"name": "John Doe",
"role": "string"
},
{
"timestamp": "2023-01-15T14:30:00Z",
"value": 42.5,
"tags": [
[
"important",
"reviewed"
]
]
}
]