github.com/ffalor/go-swagger@v0.0.0-20231011000038-9f25265ac351/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 }, 13 "license": { 14 "name": "license", 15 "x-ext-license-1": "ext license 1", 16 "x-ext-license-2": "ext license 2" 17 } 18 }, 19 "paths": { 20 "/b/": { 21 "get": { 22 "responses": { 23 "200": { 24 "description": "200 response", 25 "schema": { 26 "type": "array", 27 "items": { 28 "$ref": "#/definitions/A1", 29 "x-b-items-1": "b items 1", 30 "x-b-items-2": "b items 2" 31 }, 32 "x-schema-1": "schema 1 ext" 33 }, 34 "headers": { 35 "headerB-1": { 36 "type": "integer", 37 "x-header-ext-1": "header-ext-b-1" 38 }, 39 "headerB-2": { 40 "type": "integer" 41 } 42 } 43 }, 44 "x-ext-resp-1": "response ext 1" 45 }, 46 "x-ext-2-operation": "ext b 2" 47 }, 48 "x-ext-b-1": "ext b 1" 49 } 50 }, 51 "definitions": { 52 "A1": { 53 "type": "object", 54 "properties": { 55 "id": { 56 "type": "integer" 57 }, 58 "name": { 59 "type": "string" 60 }, 61 "personality": { 62 "type": "string", 63 "enum": [ 64 "crazy", 65 "empathic", 66 "saucy" 67 ] 68 }, 69 "busby": { 70 "type": "string" 71 }, 72 "onceWasArray": { 73 "type": "array", 74 "items":{"type": "object"} 75 }, 76 "sameWideness": { 77 "type": "number" 78 } 79 } 80 } 81 }, 82 "tags": [ 83 { 84 "name": "tag1" 85 }, 86 { 87 "name": "tag2", 88 "x-ext-tag2": "ext tag 2" 89 } 90 ], 91 "securityDefinitions": { 92 "auth2": { 93 "x-security-def-1": "ext def 1", 94 "x-security-def-2": "ext def 2", 95 "type": "oauth2", 96 "flow": "accessCode", 97 "authorizationUrl": "", 98 "tokenUrl": "" 99 } 100 }, 101 "x-root-ext-1": "ext root 1", 102 "x-root-ext-2": "ext root 2" 103 }