From 2b656370b471bd7ebe49717a3fe51bf0ba311b27 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Tue, 6 Nov 2018 10:54:23 +0300 Subject: [PATCH] add an example schema to swagger-files/response-schemas.json --- example/swagger-files/response-schemas.json | 110 ++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/example/swagger-files/response-schemas.json b/example/swagger-files/response-schemas.json index 6eac5d486..1b75373a2 100644 --- a/example/swagger-files/response-schemas.json +++ b/example/swagger-files/response-schemas.json @@ -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" } } },