{ "swagger": "2.0", "info": { "title": "Integration Test", "version": "1.0" }, "paths": { "/test/dummytype/bar": { "get": { "schemes": [ "https" ], "operationId": "func2", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dummytype.Bar" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/dummytype/baz": { "get": { "schemes": [ "https" ], "operationId": "func3", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dummytype.Baz" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/dummytype/foo": { "get": { "schemes": [ "https" ], "operationId": "func1", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dummytype.Foo" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/dummytype/waldo": { "get": { "schemes": [ "https" ], "operationId": "func4", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/dummytype.Waldo" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/listtype/atomiclist": { "get": { "schemes": [ "https" ], "operationId": "func5", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/listtype.AtomicList" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/listtype/maplist": { "get": { "schemes": [ "https" ], "operationId": "func6", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/listtype.MapList" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/listtype/setlist": { "get": { "schemes": [ "https" ], "operationId": "func7", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/listtype.SetList" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/uniontype/inlinedunion": { "get": { "schemes": [ "https" ], "operationId": "func9", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/uniontype.InlinedUnion" } }, "404": { "$ref": "#/responses/NotFound" } } } }, "/test/uniontype/toplevelunion": { "get": { "schemes": [ "https" ], "operationId": "func8", "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/uniontype.TopLevelUnion" } }, "404": { "$ref": "#/responses/NotFound" } } } } }, "definitions": { "dummytype.Bar": { "type": "object", "required": [ "ViolationBehind", "Violation" ], "properties": { "Violation": { "type": "boolean" }, "ViolationBehind": { "type": "boolean" } } }, "dummytype.Baz": { "type": "object", "required": [ "Violation", "ViolationBehind" ], "properties": { "Violation": { "type": "boolean" }, "ViolationBehind": { "type": "boolean" } } }, "dummytype.Foo": { "type": "object", "required": [ "Second", "First" ], "properties": { "First": { "type": "integer", "format": "int32" }, "Second": { "type": "string" } } }, "dummytype.Waldo": { "type": "object", "required": [ "First", "Second" ], "properties": { "First": { "type": "integer", "format": "int32" }, "Second": { "type": "string" } } }, "listtype.AtomicList": { "type": "object", "required": [ "Field" ], "properties": { "Field": { "type": "array", "items": { "type": "string" }, "x-kubernetes-list-type": "atomic" } } }, "listtype.Item": { "type": "object", "required": [ "Protocol", "Port" ], "properties": { "Port": { "type": "integer", "format": "int32" }, "Protocol": { "type": "string" }, "a": { "type": "integer", "format": "int32" }, "b": { "type": "integer", "format": "int32" }, "c": { "type": "integer", "format": "int32" } } }, "listtype.MapList": { "type": "object", "required": [ "Field" ], "properties": { "Field": { "type": "array", "items": { "$ref": "#/definitions/listtype.Item" }, "x-kubernetes-list-map-keys": "port", "x-kubernetes-list-type": "map" } } }, "listtype.SetList": { "type": "object", "required": [ "Field" ], "properties": { "Field": { "type": "array", "items": { "type": "string" }, "x-kubernetes-list-type": "set" } } }, "uniontype.InlinedUnion": { "type": "object", "required": [ "name", "type" ], "properties": { "alpha": { "type": "integer", "format": "int32" }, "beta": { "type": "integer", "format": "int32" }, "field1": { "type": "integer", "format": "int32" }, "field2": { "type": "integer", "format": "int32" }, "fieldA": { "type": "integer", "format": "int32" }, "fieldB": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "type": { "type": "string" }, "unionType": { "type": "string" } }, "x-kubernetes-unions": [ { "discriminator": "unionType", "fields-to-discriminateBy": { "fieldA": "FieldA", "fieldB": "FieldB" } }, { "discriminator": "type", "fields-to-discriminateBy": { "alpha": "Alpha", "beta": "Beta" } }, { "fields-to-discriminateBy": { "field1": "Field1", "field2": "Field2" } } ] }, "uniontype.TopLevelUnion": { "type": "object", "required": [ "name" ], "properties": { "fieldA": { "type": "integer", "format": "int32" }, "fieldB": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "unionType": { "type": "string" } }, "x-kubernetes-unions": [ { "discriminator": "unionType", "fields-to-discriminateBy": { "fieldA": "FieldA", "fieldB": "FieldB" } } ] } }, "responses": { "NotFound": { "description": "Entity not found." } } }