Diagram
|
|
Type
|
object |
Properties
|
Name |
Occurrence |
id category name photoUrls tags status
|
optional optional required required optional optional
|
|
Source
|
"Pet": {
"type": "object",
"xml": {"name": "Pet"},
"required": [
"name",
"photoUrls"
],
"properties": {
"id": {"type": "integer"},
"category": {"ref": "#/components/schemas/Category"},
"name": {
"type": "string",
"example": "doggie"
},
"photoUrls": {
"type": "array",
"xml": {
"name": "photoUrl",
"wrapped": true
},
"items": {}
},
"tags": {
"type": "array",
"xml": {
"name": "tag",
"wrapped": true
},
"items": {}
},
"status": {
"description": "pet status in the store",
"type": "string",
"enum": [
"sold",
"pending",
"available"
]
}
}
}
|
|
Diagram
|
|
Type
|
object |
All of
|
Choices |
id : Schema (#/properties/Pet/properties/id/0) |
id : Schema (#/properties/Pet/properties/id/1) |
|
Source
|
"id": {"type": "integer"}
|
|
Diagram
|
|
Type
|
number |
Source
|
"#/properties/Pet/properties/id/0": {"type": "integer"}
|
|
Diagram
|
|
Type
|
string |
Source
|
"#/properties/Pet/properties/id/1": {}
|
|
Diagram
|
|
Type
|
empty schema |
Source
|
"category": {"ref": "#/components/schemas/Category"}
|
|
Diagram
|
|
Type
|
string |
Source
|
"name": {
"type": "string",
"example": "doggie"
}
|
|
Diagram
|
|
Type
|
array |
Constraints
|
|
Array Items
|
Items |
#/properties/Pet/properties/photoUrls/items |
|
Source
|
"photoUrls": {
"type": "array",
"xml": {
"name": "photoUrl",
"wrapped": true
},
"items": {"type": "string"}
}
|
|
Diagram
|
|
Type
|
string |
Source
|
"items": {"type": "string"}
|
|
Diagram
|
|
Type
|
array |
Constraints
|
|
Array Items
|
Items |
#/properties/Pet/properties/tags/items |
|
Source
|
"tags": {
"type": "array",
"xml": {
"name": "tag",
"wrapped": true
},
"items": {"ref": "#/components/schemas/Tag"}
}
|
|
Diagram
|
|
Type
|
empty schema |
Source
|
"items": {"ref": "#/components/schemas/Tag"}
|
|
Annotations
|
Description pet status in the store
|
|
Diagram
|
|
Type
|
string |
Enumeration
|
Values |
sold |
pending |
available |
|
Source
|
"status": {
"description": "pet status in the store",
"type": "string",
"enum": [
"sold",
"pending",
"available"
]
}
|
|