Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
add an example schema to swagger-files/response-schemas.json
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolodya committed Nov 6, 2018
1 parent 21cb77e commit 2b65637
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions example/swagger-files/response-schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,117 @@
}
}
}
},
"pets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Pet"
}
}
}
},
"Pet": {
"type": "object",
"required": ["name", "photoUrls"],
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string",
"example": "doggie"
},
"name2": {
"type": "string",
"example": "doggie"
},
"name3": {
"type": "string",
"example": "doggie"
},
"name4": {
"type": "string",
"example": "doggie"
},
"name5": {
"type": "string",
"example": "doggie"
},
"name6": {
"type": "string",
"example": "doggie"
},
"name7": {
"type": "string",
"example": "doggie"
},
"name8": {
"type": "string",
"example": "doggie"
},
"name9": {
"type": "string",
"example": "doggie"
},
"name10": {
"type": "string",
"example": "doggie"
},
"name11": {
"type": "string",
"example": "doggie"
},
"name12": {
"type": "string",
"example": "doggie"
},
"name13": {
"type": "string",
"example": "doggie"
},
"name14": {
"type": "string",
"example": "doggie"
},
"name15": {
"type": "string",
"example": "doggie"
},
"name16": {
"type": "string",
"example": "doggie"
},
"name17": {
"type": "string",
"example": "doggie"
},
"name18": {
"type": "string",
"example": "doggie"
},
"name19": {
"type": "string",
"example": "doggie"
},
"photoUrls": {
"type": "array",
"xml": {
"name": "photoUrl",
"wrapped": true
},
"items": {
"type": "string"
}
},
"status": {
"type": "string",
"description": "pet status in the store",
"enum": ["available", "pending", "sold"]
}
},
"xml": {
"name": "Pet"
}
}
},
Expand Down

0 comments on commit 2b65637

Please sign in to comment.