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