mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
507 lines
No EOL
8.6 KiB
JSON
507 lines
No EOL
8.6 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "Integration Test",
|
|
"version": "1.0"
|
|
},
|
|
"paths": {
|
|
"/test/custom/bac": {
|
|
"get": {
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "func12",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/custom.Bac"
|
|
}
|
|
},
|
|
"404": {
|
|
"$ref": "#/responses/NotFound"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/test/custom/bah": {
|
|
"get": {
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "func13",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/custom.Bah"
|
|
}
|
|
},
|
|
"404": {
|
|
"$ref": "#/responses/NotFound"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/test/custom/bak": {
|
|
"get": {
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "func11",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/custom.Bak"
|
|
}
|
|
},
|
|
"404": {
|
|
"$ref": "#/responses/NotFound"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/test/custom/bal": {
|
|
"get": {
|
|
"schemes": [
|
|
"https"
|
|
],
|
|
"operationId": "func10",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"schema": {
|
|
"$ref": "#/definitions/custom.Bal"
|
|
}
|
|
},
|
|
"404": {
|
|
"$ref": "#/responses/NotFound"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/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": {
|
|
"custom.Bac": {
|
|
"type": "string"
|
|
},
|
|
"custom.Bah": {
|
|
"type": "test-type",
|
|
"format": "test-format"
|
|
},
|
|
"custom.Bak": {
|
|
"type": "integer"
|
|
},
|
|
"custom.Bal": {
|
|
"type": "string"
|
|
},
|
|
"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."
|
|
}
|
|
}
|
|
} |