github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/enhancements/2464/fixture-2464.yaml (about) 1 swagger: "2.0" 2 info: 3 title: "enum variant names" 4 version: "0.0.1" 5 paths: 6 "/": 7 get: 8 summary: Get a device 9 operationId: "GetDevice" 10 responses: 11 200: 12 description: Get an example device 13 schema: 14 type: object 15 properties: 16 band: { $ref: "#/definitions/band" } 17 change: { $ref: "#/definitions/change" } 18 topic: { $ref: "#/definitions/topic" } 19 20 definitions: 21 band: 22 type: string 23 enum: 24 - "2.4Ghz" 25 - "5Ghz" 26 - "10Ghz" 27 - "24Ghz" 28 change: 29 type: string 30 enum: 31 - "-1" 32 - "0" 33 - "+1" 34 topic: 35 type: string 36 enum: 37 - "#one" 38 - "two#two"