github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2111/fixture-2111.yaml (about) 1 --- 2 swagger: "2.0" 3 info: 4 title: "unsafe tag names" 5 version: "0.0.1" 6 description: "repro issue 2111" 7 license: 8 name: "Apache 2.0" 9 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 10 11 tags: 12 - name: "gentle" 13 description: a reusable tag with some go target enforced 14 x-go-name: gtl # all operations with this tag are created in pkg "gtl" 15 - name: "!+nasty" 16 description: a reusable tag with some go target enforced, with mangling 17 x-go-name: 12nasty 18 - name: compat 19 description: this also works with x-go-operation-tag 20 x-go-operation-tag: forced 21 22 paths: 23 /test: 24 get: 25 tags: 26 - 123abc 27 operationId: testId 28 responses: 29 200: 30 description: Expected response to a valid request 31 schema: 32 type: object 33 34 /reserved: 35 get: 36 tags: 37 - abc_test 38 responses: 39 200: 40 description: yay 41 schema: 42 type: object 43 44 /otherReserved: 45 get: 46 tags: 47 - abc_linux 48 responses: 49 200: 50 description: wow 51 schema: 52 type: object 53 54 /multiple: 55 get: 56 tags: 57 - abc_linux 58 - ignored-tag 59 responses: 60 200: 61 description: ':smile:' 62 schema: 63 type: object 64 65 /unsafe: 66 get: 67 tags: 68 - '#donuts' 69 responses: 70 200: 71 description: great 72 schema: 73 type: object 74 75 /otherUnsafe: 76 get: 77 tags: 78 - '+donuts' 79 responses: 80 200: 81 description: awesome 82 schema: 83 type: object 84 85 /yetAnotherUnsafe: 86 get: 87 tags: 88 - '@donuts' 89 responses: 90 200: 91 description: nice 92 schema: 93 type: object 94 95 /custom: 96 get: 97 tags: 98 - ignored-tag 99 x-go-operation-tag: custom 100 responses: 101 200: 102 description: ride on 103 schema: 104 type: object 105 106 /conflict: 107 get: 108 tags: 109 - api 110 responses: 111 200: 112 description: brilliant 113 schema: 114 type: object 115 116 /notag: 117 get: 118 responses: 119 200: 120 description: excellent 121 schema: 122 type: object 123 124 /anotherConflict: 125 get: 126 tags: 127 - strfmt 128 responses: 129 200: 130 description: well done 131 schema: 132 type: object 133 134 /rootConflict: 135 get: 136 tags: 137 - operations 138 responses: 139 200: 140 description: heee ah 141 schema: 142 type: object 143 144 /test-override: 145 get: 146 tags: 147 - gentle 148 responses: 149 200: 150 description: Expected response to a valid request 151 schema: 152 type: object 153 put: 154 tags: 155 - "!+nasty" 156 responses: 157 200: 158 description: Expected response to a valid request 159 schema: 160 type: object 161 post: 162 tags: 163 - compat 164 responses: 165 200: 166 description: Expected response to a valid request 167 schema: 168 type: object 169 delete: 170 tags: 171 - compat 172 x-go-operation-tag: override # local override for operation 173 responses: 174 200: 175 description: Expected response to a valid request 176 schema: 177 type: object