github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/541/swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Pet Testing", 5 "version": "1.0.0" 6 }, 7 "host": "localhost:8080", 8 "basePath": "/v1", 9 "schemes": [ 10 "http" 11 ], 12 "consumes": [ 13 "application/json" 14 ], 15 "produces": [ 16 "application/json" 17 ], 18 "paths": { 19 "/Pets": { 20 "get": { 21 "description": "Returns list of all pets.\n", 22 "responses": { 23 "200": { 24 "description": "Array of pets", 25 "schema": { 26 "type": "array", 27 "items": { 28 "$ref": "#/definitions/Pet" 29 } 30 } 31 }, 32 "default": { 33 "description": "Unexpected error", 34 "schema": { 35 "$ref": "#/definitions/Error" 36 } 37 } 38 } 39 } 40 } 41 }, 42 "definitions": { 43 "Pet": { 44 "type": "object", 45 "discriminator": "petType", 46 "properties": { 47 "name": { 48 "type": "string" 49 }, 50 "petType": { 51 "type": "string" 52 } 53 }, 54 "required": [ 55 "name", 56 "petType" 57 ] 58 }, 59 "Cat": { 60 "description": "A representation of a cat", 61 "allOf": [ 62 { 63 "$ref": "#/definitions/Pet" 64 }, 65 { 66 "type": "object", 67 "properties": { 68 "huntingSkill": { 69 "type": "string", 70 "description": "The measured skill for hunting", 71 "default": "lazy", 72 "enum": [ 73 "clueless", 74 "lazy", 75 "adventurous", 76 "aggressive" 77 ] 78 } 79 }, 80 "required": [ 81 "huntingSkill" 82 ] 83 } 84 ] 85 }, 86 "Lion": { 87 "description": "A particular type of a cat", 88 "allOf": [ 89 { 90 "$ref": "#/definitions/Cat" 91 } 92 ] 93 }, 94 "Error": { 95 "type": "object", 96 "properties": { 97 "code": { 98 "type": "integer", 99 "format": "int32" 100 }, 101 "message": { 102 "type": "string" 103 }, 104 "fields": { 105 "type": "string" 106 } 107 } 108 } 109 } 110 }