github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/423/swagger.json (about) 1 { 2 "host": "localhost", 3 "schemes": [ 4 "https" 5 ], 6 "swagger": "2.0", 7 "produces": [ 8 "application/json" 9 ], 10 "consumes": [ 11 "application/json" 12 ], 13 "info": { 14 "title": "Soda Booth", 15 "version": "2.0" 16 }, 17 "paths": {}, 18 "definitions": { 19 "SRN": { 20 "type": "object", 21 "required": [ 22 "id", 23 "service_ip", 24 "storage_ip", 25 "local_storage_ip", 26 "service_port", 27 "hb_port", 28 "site", 29 "disks" 30 ], 31 "properties": { 32 "id": { 33 "type": "string" 34 }, 35 "service_ip": { 36 "type": "string" 37 }, 38 "storage_ip": { 39 "type": "string" 40 }, 41 "local_storage_ip": { 42 "type": "string" 43 }, 44 "service_port": { 45 "type": "integer", 46 "format": "int32" 47 }, 48 "hb_port": { 49 "type": "integer", 50 "format": "int32" 51 }, 52 "site": { 53 "$ref": "#/definitions/Site" 54 } 55 } 56 }, 57 "Site": { 58 "type": "object", 59 "discriminator": "site_type", 60 "required": [ 61 "name", 62 "site_type", 63 "username", 64 "password" 65 ], 66 "properties": { 67 "name": { 68 "type": "string" 69 }, 70 "site_type": { 71 "type": "string" 72 }, 73 "username": { 74 "type": "string" 75 }, 76 "password": { 77 "type": "string" 78 } 79 } 80 }, 81 "SiteVMWARE": { 82 "description": "A Site located in a VMWARE environment", 83 "allOf": [ 84 { 85 "$ref": "#/definitions/Site" 86 }, 87 { 88 "type": "object", 89 "required": [ 90 "server" 91 ], 92 "properties": { 93 "server": { 94 "type": "string" 95 } 96 } 97 } 98 ] 99 }, 100 "SiteCLC": { 101 "description": "A Site located in a CLC environment", 102 "allOf": [ 103 { 104 "$ref": "#/definitions/Site" 105 }, 106 { 107 "type": "object", 108 "required": [ 109 "account", 110 "location" 111 ], 112 "properties": { 113 "account": { 114 "type": "string" 115 }, 116 "location": { 117 "type": "string" 118 } 119 } 120 } 121 ] 122 } 123 } 124 }