github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2494/fixture-2494.yaml (about) 1 swagger: "2.0" 2 schemes: 3 - "http" 4 - "https" 5 produces: 6 - "application/json" 7 - "text/plain" 8 consumes: 9 - "application/json" 10 - "text/plain" 11 basePath: "/v1.40" 12 info: 13 title: "Docker Engine API" 14 version: "1.40" 15 x-logo: 16 url: "https://docs.docker.com/images/logo-docker-main.png" 17 description: | 18 Fixture from swagger v19.03.13 19 20 paths: 21 /fixture: 22 get: 23 responses: 24 200: 25 description: ok 26 schema: 27 $ref: '#/definitions/PortMap' 28 29 definitions: 30 PortBinding: 31 description: | 32 PortBinding represents a binding between a host IP address and a host 33 port. 34 type: "object" 35 properties: 36 HostIp: 37 description: "Host IP address that the container's port is mapped to." 38 type: "string" 39 example: "127.0.0.1" 40 HostPort: 41 description: "Host port number that the container's port is mapped to." 42 type: "string" 43 example: "4443" 44 45 PortMap: 46 description: | 47 PortMap describes the mapping of container ports to host ports, using the 48 container's port-number and protocol as key in the format `<port>/<protocol>`, 49 for example, `80/udp`. 50 51 If a container's port is mapped for multiple protocols, separate entries 52 are added to the mapping table. 53 type: "object" 54 additionalProperties: 55 type: "array" 56 x-nullable: true 57 items: 58 $ref: "#/definitions/PortBinding" 59 example: 60 "443/tcp": 61 - HostIp: "127.0.0.1" 62 HostPort: "4443" 63 "80/tcp": 64 - HostIp: "0.0.0.0" 65 HostPort: "80" 66 - HostIp: "0.0.0.0" 67 HostPort: "8080" 68 "80/udp": 69 - HostIp: "0.0.0.0" 70 HostPort: "80" 71 "53/udp": 72 - HostIp: "0.0.0.0" 73 HostPort: "53" 74 "2377/tcp": null 75 76 PortList: 77 type: array 78 items: 79 type: array 80 x-nullable: true 81 items: 82 $ref: '#/definitions/PortBinding'