github.com/go-swagger/go-swagger@v0.31.0/fixtures/diff/extensions.v1.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Swagger Fixture", 5 "version": "1.0", 6 "x-ext-info-1": "a", 7 "x-ext-info-2": "b", 8 "contact": { 9 "name": "go-swagger", 10 "x-ext-contact-1": "ext contact 1", 11 "x-ext-contact-2": "ext contact 2", 12 "x-ext-contact-4": [] 13 }, 14 "license": { 15 "name": "license", 16 "x-ext-license-1": "ext license 1", 17 "x-ext-license-2": "ext license 2", 18 "x-ext-license-4": 0.5 19 } 20 }, 21 "paths": { 22 "/b/": { 23 "parameters": [ 24 { 25 "name": "a", 26 "in": "query", 27 "x-ext-param-a": "ext param a", 28 "x-ext-param-a-2": true 29 }, 30 { 31 "name": "b", 32 "in": "path" 33 }, 34 { 35 "name": "c", 36 "in": "body", 37 "x-ext-param-c": "ext param c" 38 }, 39 { 40 "name": "d", 41 "in": "header" 42 }, 43 { 44 "name": "d", 45 "in": "formData" 46 } 47 ], 48 "post": { 49 "responses": { 50 "200": { 51 "description": "200 response" 52 } 53 } 54 }, 55 "get": { 56 "parameters": [ 57 { 58 "name": "limit", 59 "in": "query", 60 "x-ext-param-limit": "ext param limit" 61 }, 62 { 63 "name": "offset", 64 "in": "query" 65 } 66 ], 67 "responses": { 68 "200": { 69 "description": "200 response", 70 "schema": { 71 "type": "array", 72 "items": { 73 "$ref": "#/definitions/A1", 74 "x-b-items-1": "b items 1", 75 "x-b-items-2": "b items 2" 76 }, 77 "x-schema-1": "schema 1 ext", 78 "x-schema-3": "schema 3 ext MODIFIED" 79 }, 80 "headers": { 81 "headerB-1": { 82 "type": "integer", 83 "x-header-ext-1": "header-ext-b-1", 84 "x-header-ext-3": 1 85 }, 86 "headerB-2": { 87 "type": "integer" 88 } 89 } 90 }, 91 "x-ext-resp-1": "response ext 1", 92 "x-ext-resp-3": "response ext 3" 93 }, 94 "x-ext-2-operation": "ext b 2", 95 "x-ext-4-operation": 0 96 }, 97 "x-ext-b-1": "ext b 1", 98 "x-ext-b-4": {} 99 } 100 }, 101 "definitions": { 102 "A1": { 103 "type": "object", 104 "properties": { 105 "id": { 106 "type": "integer" 107 }, 108 "name": { 109 "type": "string" 110 }, 111 "personality": { 112 "type": "string", 113 "enum": [ 114 "crazy", 115 "empathic", 116 "saucy" 117 ] 118 }, 119 "busby": { 120 "type": "string" 121 }, 122 "onceWasArray": { 123 "type": "array", 124 "items":{"type": "object"} 125 }, 126 "sameWideness": { 127 "type": "number" 128 } 129 } 130 } 131 }, 132 "tags": [ 133 { 134 "name": "tag1" 135 }, 136 { 137 "name": "tag2", 138 "x-ext-tag2": "ext tag 2", 139 "x-ext-tag3": {} 140 } 141 ], 142 "securityDefinitions": { 143 "auth2": { 144 "x-security-def-1": "ext def 1", 145 "x-security-def-2": "ext def 2", 146 "x-security-def-4": {"type": "oauth2"}, 147 "type": "oauth2", 148 "flow": "accessCode", 149 "authorizationUrl": "", 150 "tokenUrl": "" 151 } 152 }, 153 "x-root-ext-1": "ext root 1", 154 "x-root-ext-2": "ext root 2", 155 "x-root-ext-4": "ext root 4" 156 }