diff --git a/api/mesh/v1alpha1/mesh/rest.yaml b/api/mesh/v1alpha1/mesh/rest.yaml index b571f9ac2834..07444bddb430 100644 --- a/api/mesh/v1alpha1/mesh/rest.yaml +++ b/api/mesh/v1alpha1/mesh/rest.yaml @@ -46,13 +46,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' delete: operationId: deleteMesh @@ -84,7 +84,6 @@ components: schemas: MeshItem: $ref: 'schema.yaml' - responses: MeshCreateOrUpdateSuccessResponse: type: object properties: @@ -95,6 +94,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshItem: description: Successful response content: diff --git a/api/mesh/v1alpha1/meshgateway/rest.yaml b/api/mesh/v1alpha1/meshgateway/rest.yaml index 730baffb16e4..91542b7f5d2b 100644 --- a/api/mesh/v1alpha1/meshgateway/rest.yaml +++ b/api/mesh/v1alpha1/meshgateway/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshGatewayCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshGatewayCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshGateway @@ -109,7 +109,6 @@ components: schemas: MeshGatewayItem: $ref: 'schema.yaml' - responses: MeshGatewayCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshGatewayItem: description: Successful response content: diff --git a/docs/generated/openapi.yaml b/docs/generated/openapi.yaml index f7c338eed0aa..b879c94aa5ce 100644 --- a/docs/generated/openapi.yaml +++ b/docs/generated/openapi.yaml @@ -287,14 +287,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshAccessLogCreateOrUpdateSuccessResponse + #/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshAccessLogCreateOrUpdateSuccessResponse + #/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse delete: operationId: deleteMeshAccessLog summary: Deletes MeshAccessLog entity @@ -388,14 +388,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshCircuitBreakerCreateOrUpdateSuccessResponse + #/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshCircuitBreakerCreateOrUpdateSuccessResponse + #/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse delete: operationId: deleteMeshCircuitBreaker summary: Deletes MeshCircuitBreaker entity @@ -489,14 +489,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshFaultInjectionCreateOrUpdateSuccessResponse + #/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshFaultInjectionCreateOrUpdateSuccessResponse + #/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse delete: operationId: deleteMeshFaultInjection summary: Deletes MeshFaultInjection entity @@ -590,14 +590,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshHealthCheckCreateOrUpdateSuccessResponse + #/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshHealthCheckCreateOrUpdateSuccessResponse + #/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse delete: operationId: deleteMeshHealthCheck summary: Deletes MeshHealthCheck entity @@ -691,14 +691,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshHTTPRouteCreateOrUpdateSuccessResponse + #/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshHTTPRouteCreateOrUpdateSuccessResponse + #/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse delete: operationId: deleteMeshHTTPRoute summary: Deletes MeshHTTPRoute entity @@ -792,14 +792,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse + #/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse + #/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse delete: operationId: deleteMeshLoadBalancingStrategy summary: Deletes MeshLoadBalancingStrategy entity @@ -892,13 +892,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshMetricCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshMetricCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshMetric summary: Deletes MeshMetric entity @@ -992,14 +992,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshPassthroughCreateOrUpdateSuccessResponse + #/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshPassthroughCreateOrUpdateSuccessResponse + #/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse delete: operationId: deleteMeshPassthrough summary: Deletes MeshPassthrough entity @@ -1093,14 +1093,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshProxyPatchCreateOrUpdateSuccessResponse + #/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshProxyPatchCreateOrUpdateSuccessResponse + #/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse delete: operationId: deleteMeshProxyPatch summary: Deletes MeshProxyPatch entity @@ -1194,14 +1194,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshRateLimitCreateOrUpdateSuccessResponse + #/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshRateLimitCreateOrUpdateSuccessResponse + #/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse delete: operationId: deleteMeshRateLimit summary: Deletes MeshRateLimit entity @@ -1294,13 +1294,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshRetryCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshRetryCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshRetry summary: Deletes MeshRetry entity @@ -1393,15 +1393,13 @@ paths: content: application/json: schema: - $ref: >- - #/components/responses/MeshTCPRouteCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: >- - #/components/responses/MeshTCPRouteCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTCPRoute summary: Deletes MeshTCPRoute entity @@ -1494,15 +1492,13 @@ paths: content: application/json: schema: - $ref: >- - #/components/responses/MeshTimeoutCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: >- - #/components/responses/MeshTimeoutCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTimeout summary: Deletes MeshTimeout entity @@ -1595,13 +1591,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTLSCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTLSCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTLS summary: Deletes MeshTLS entity @@ -1694,13 +1690,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTraceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTraceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTrace summary: Deletes MeshTrace entity @@ -1794,14 +1790,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshTrafficPermissionCreateOrUpdateSuccessResponse + #/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshTrafficPermissionCreateOrUpdateSuccessResponse + #/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse delete: operationId: deleteMeshTrafficPermission summary: Deletes MeshTrafficPermission entity @@ -1882,13 +1878,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCreateOrUpdateSuccessResponse' delete: operationId: deleteMesh summary: Deletes Mesh entity @@ -1968,15 +1964,13 @@ paths: content: application/json: schema: - $ref: >- - #/components/responses/MeshGatewayCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: >- - #/components/responses/MeshGatewayCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshGatewayCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshGateway summary: Deletes MeshGateway entity @@ -2058,14 +2052,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/HostnameGeneratorCreateOrUpdateSuccessResponse + #/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/HostnameGeneratorCreateOrUpdateSuccessResponse + #/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse delete: operationId: deleteHostnameGenerator summary: Deletes HostnameGenerator entity @@ -2146,14 +2140,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshExternalServiceCreateOrUpdateSuccessResponse + #/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshExternalServiceCreateOrUpdateSuccessResponse + #/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse delete: operationId: deleteMeshExternalService summary: Deletes MeshExternalService entity @@ -2247,14 +2241,14 @@ paths: application/json: schema: $ref: >- - #/components/responses/MeshMultiZoneServiceCreateOrUpdateSuccessResponse + #/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse '201': description: Created content: application/json: schema: $ref: >- - #/components/responses/MeshMultiZoneServiceCreateOrUpdateSuccessResponse + #/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse delete: operationId: deleteMeshMultiZoneService summary: Deletes MeshMultiZoneService entity @@ -2347,15 +2341,13 @@ paths: content: application/json: schema: - $ref: >- - #/components/responses/MeshServiceCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: >- - #/components/responses/MeshServiceCreateOrUpdateSuccessResponse + $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshService summary: Deletes MeshService entity @@ -3693,6 +3685,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshAccessLogCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshCircuitBreakerItem: type: object required: @@ -4902,6 +4907,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshCircuitBreakerCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshFaultInjectionItem: type: object required: @@ -5405,6 +5423,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshFaultInjectionCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshHealthCheckItem: type: object required: @@ -5881,6 +5912,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshHealthCheckCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshHTTPRouteItem: type: object required: @@ -6676,6 +6720,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshHTTPRouteCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshLoadBalancingStrategyItem: type: object required: @@ -7428,6 +7485,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshMetricItem: type: object required: @@ -7748,6 +7818,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshMetricCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshPassthroughItem: type: object required: @@ -7921,6 +8004,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshPassthroughCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshProxyPatchItem: type: object required: @@ -8626,6 +8722,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshProxyPatchCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshRateLimitItem: type: object required: @@ -9203,6 +9312,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshRateLimitCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshRetryItem: type: object required: @@ -9838,6 +9960,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshRetryCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshTCPRouteItem: type: object required: @@ -10168,6 +10303,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshTCPRouteCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshTimeoutItem: type: object required: @@ -10728,6 +10876,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshTimeoutCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshTLSItem: type: object required: @@ -10997,6 +11158,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshTLSCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshTraceItem: type: object required: @@ -11335,6 +11509,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshTraceCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshTrafficPermissionItem: type: object required: @@ -11565,6 +11752,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + MeshTrafficPermissionCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshItem: properties: constraints: @@ -11895,6 +12095,19 @@ components: - type - name type: object + MeshCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshGatewayItem: properties: conf: @@ -12080,6 +12293,19 @@ components: - name - mesh type: object + MeshGatewayCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string HostnameGeneratorItem: type: object required: @@ -12140,6 +12366,19 @@ components: description: Time at which the resource was updated format: date-time example: '0001-01-01T00:00:00Z' + HostnameGeneratorCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshExternalServiceItem: type: object required: @@ -12484,7 +12723,20 @@ components: type: string type: object type: object - MeshMultiZoneServiceItem: + MeshExternalServiceCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string + MeshMultiZoneServiceItem: type: object required: - type @@ -12684,6 +12936,19 @@ components: type: object type: array type: object + MeshMultiZoneServiceCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string MeshServiceItem: type: object required: @@ -12910,6 +13175,19 @@ components: type: object type: array type: object + MeshServiceCreateOrUpdateSuccessResponse: + type: object + properties: + warnings: + type: array + description: > + warnings is a list of warning messages to return to the requesting + Kuma API clients. + + Warning messages describe a problem the client making the API + request should correct or be aware of. + items: + type: string responses: IndexResponse: description: A response for the index endpoint @@ -12980,19 +13258,6 @@ components: application/problem+json: schema: $ref: '#/components/schemas/NotFoundError' - MeshAccessLogCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshAccessLogItem: description: Successful response content: @@ -13016,19 +13281,6 @@ components: next: type: string description: URL to the next page - MeshCircuitBreakerCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshCircuitBreakerItem: description: Successful response content: @@ -13052,19 +13304,6 @@ components: next: type: string description: URL to the next page - MeshFaultInjectionCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshFaultInjectionItem: description: Successful response content: @@ -13088,19 +13327,6 @@ components: next: type: string description: URL to the next page - MeshHealthCheckCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshHealthCheckItem: description: Successful response content: @@ -13124,19 +13350,6 @@ components: next: type: string description: URL to the next page - MeshHTTPRouteCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshHTTPRouteItem: description: Successful response content: @@ -13160,19 +13373,6 @@ components: next: type: string description: URL to the next page - MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshLoadBalancingStrategyItem: description: Successful response content: @@ -13196,19 +13396,6 @@ components: next: type: string description: URL to the next page - MeshMetricCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshMetricItem: description: Successful response content: @@ -13232,19 +13419,6 @@ components: next: type: string description: URL to the next page - MeshPassthroughCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshPassthroughItem: description: Successful response content: @@ -13268,19 +13442,6 @@ components: next: type: string description: URL to the next page - MeshProxyPatchCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshProxyPatchItem: description: Successful response content: @@ -13304,19 +13465,6 @@ components: next: type: string description: URL to the next page - MeshRateLimitCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshRateLimitItem: description: Successful response content: @@ -13340,19 +13488,6 @@ components: next: type: string description: URL to the next page - MeshRetryCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshRetryItem: description: Successful response content: @@ -13376,19 +13511,6 @@ components: next: type: string description: URL to the next page - MeshTCPRouteCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshTCPRouteItem: description: Successful response content: @@ -13412,19 +13534,6 @@ components: next: type: string description: URL to the next page - MeshTimeoutCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshTimeoutItem: description: Successful response content: @@ -13448,19 +13557,6 @@ components: next: type: string description: URL to the next page - MeshTLSCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshTLSItem: description: Successful response content: @@ -13484,19 +13580,6 @@ components: next: type: string description: URL to the next page - MeshTraceCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshTraceItem: description: Successful response content: @@ -13520,19 +13603,6 @@ components: next: type: string description: URL to the next page - MeshTrafficPermissionCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshTrafficPermissionItem: description: Successful response content: @@ -13556,19 +13626,6 @@ components: next: type: string description: URL to the next page - MeshCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshItem: description: Successful response content: @@ -13592,19 +13649,6 @@ components: next: type: string description: URL to the next page - MeshGatewayCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshGatewayItem: description: Successful response content: @@ -13628,19 +13672,6 @@ components: next: type: string description: URL to the next page - HostnameGeneratorCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string HostnameGeneratorItem: description: Successful response content: @@ -13664,19 +13695,6 @@ components: next: type: string description: URL to the next page - MeshExternalServiceCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshExternalServiceItem: description: Successful response content: @@ -13700,19 +13718,6 @@ components: next: type: string description: URL to the next page - MeshMultiZoneServiceCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshMultiZoneServiceItem: description: Successful response content: @@ -13736,19 +13741,6 @@ components: next: type: string description: URL to the next page - MeshServiceCreateOrUpdateSuccessResponse: - type: object - properties: - warnings: - type: array - description: > - warnings is a list of warning messages to return to the requesting - Kuma API clients. - - Warning messages describe a problem the client making the API - request should correct or be aware of. - items: - type: string MeshServiceItem: description: Successful response content: diff --git a/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml index 79ce706516f2..6b40ed2d6353 100644 --- a/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/hostnamegenerator/api/v1alpha1/rest.yaml @@ -46,13 +46,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/HostnameGeneratorCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/HostnameGeneratorCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/HostnameGeneratorCreateOrUpdateSuccessResponse' delete: operationId: deleteHostnameGenerator @@ -84,7 +84,6 @@ components: schemas: HostnameGeneratorItem: $ref: 'schema.yaml' - responses: HostnameGeneratorCreateOrUpdateSuccessResponse: type: object properties: @@ -95,6 +94,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: HostnameGeneratorItem: description: Successful response content: diff --git a/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml index 758f3c38a2a8..c16b3fb740cf 100644 --- a/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshexternalservice/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshExternalServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshExternalServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshExternalServiceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshExternalService @@ -109,7 +109,6 @@ components: schemas: MeshExternalServiceItem: $ref: 'schema.yaml' - responses: MeshExternalServiceCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshExternalServiceItem: description: Successful response content: diff --git a/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml index 5b63804026e0..3882eca6b472 100644 --- a/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshmultizoneservice/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshMultiZoneServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshMultiZoneServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMultiZoneServiceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshMultiZoneService @@ -109,7 +109,6 @@ components: schemas: MeshMultiZoneServiceItem: $ref: 'schema.yaml' - responses: MeshMultiZoneServiceCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshMultiZoneServiceItem: description: Successful response content: diff --git a/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml b/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml index cfdf0ae3a753..753f2e3b739a 100644 --- a/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml +++ b/pkg/core/resources/apis/meshservice/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshServiceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshServiceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshService @@ -109,7 +109,6 @@ components: schemas: MeshServiceItem: $ref: 'schema.yaml' - responses: MeshServiceCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshServiceItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml index 0942079a1be1..2cd5c175d638 100644 --- a/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshaccesslog/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshAccessLogCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshAccessLogCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshAccessLogCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshAccessLog @@ -109,7 +109,6 @@ components: schemas: MeshAccessLogItem: $ref: 'schema.yaml' - responses: MeshAccessLogCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshAccessLogItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml index df3dd8ff8450..ae5f6424c97e 100644 --- a/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshcircuitbreaker/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshCircuitBreakerCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshCircuitBreakerCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshCircuitBreakerCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshCircuitBreaker @@ -109,7 +109,6 @@ components: schemas: MeshCircuitBreakerItem: $ref: 'schema.yaml' - responses: MeshCircuitBreakerCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshCircuitBreakerItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml index 4ecd0674da2e..105efbe4bd74 100644 --- a/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshfaultinjection/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshFaultInjectionCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshFaultInjectionCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshFaultInjectionCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshFaultInjection @@ -109,7 +109,6 @@ components: schemas: MeshFaultInjectionItem: $ref: 'schema.yaml' - responses: MeshFaultInjectionCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshFaultInjectionItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml index 0b1b979d469f..2cbff448baab 100644 --- a/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshhealthcheck/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshHealthCheckCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshHealthCheckCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshHealthCheckCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshHealthCheck @@ -109,7 +109,6 @@ components: schemas: MeshHealthCheckItem: $ref: 'schema.yaml' - responses: MeshHealthCheckCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshHealthCheckItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml index 1e607e64479c..ee682de73a01 100644 --- a/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshhttproute/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshHTTPRouteCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshHTTPRouteCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshHTTPRouteCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshHTTPRoute @@ -109,7 +109,6 @@ components: schemas: MeshHTTPRouteItem: $ref: 'schema.yaml' - responses: MeshHTTPRouteCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshHTTPRouteItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml index 73ec771ed573..26494c5e6886 100644 --- a/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshloadbalancingstrategy/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshLoadBalancingStrategy @@ -109,7 +109,6 @@ components: schemas: MeshLoadBalancingStrategyItem: $ref: 'schema.yaml' - responses: MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshLoadBalancingStrategyItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml index edbb2dc2eaca..34ecf7dc9717 100644 --- a/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshmetric/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshMetricCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshMetricCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshMetricCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshMetric @@ -109,7 +109,6 @@ components: schemas: MeshMetricItem: $ref: 'schema.yaml' - responses: MeshMetricCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshMetricItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml index 8315a5bf5c47..d1279b466818 100644 --- a/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshpassthrough/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshPassthroughCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshPassthroughCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshPassthroughCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshPassthrough @@ -109,7 +109,6 @@ components: schemas: MeshPassthroughItem: $ref: 'schema.yaml' - responses: MeshPassthroughCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshPassthroughItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml index c74bfac485bf..80f235c5539e 100644 --- a/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshproxypatch/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshProxyPatchCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshProxyPatchCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshProxyPatchCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshProxyPatch @@ -109,7 +109,6 @@ components: schemas: MeshProxyPatchItem: $ref: 'schema.yaml' - responses: MeshProxyPatchCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshProxyPatchItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml index cefec5f5d1aa..a1f8c1cc89c3 100644 --- a/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshratelimit/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshRateLimitCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshRateLimitCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRateLimitCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshRateLimit @@ -109,7 +109,6 @@ components: schemas: MeshRateLimitItem: $ref: 'schema.yaml' - responses: MeshRateLimitCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshRateLimitItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml index 179f70cd1126..9099d1118563 100644 --- a/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshretry/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshRetryCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshRetryCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshRetryCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshRetry @@ -109,7 +109,6 @@ components: schemas: MeshRetryItem: $ref: 'schema.yaml' - responses: MeshRetryCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshRetryItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml index 1e694f71519a..da20e87bcf2d 100644 --- a/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtcproute/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTCPRouteCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTCPRouteCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTCPRouteCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTCPRoute @@ -109,7 +109,6 @@ components: schemas: MeshTCPRouteItem: $ref: 'schema.yaml' - responses: MeshTCPRouteCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshTCPRouteItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml index 8acba204f490..2555975e486f 100644 --- a/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtimeout/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTimeoutCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTimeoutCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTimeoutCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTimeout @@ -109,7 +109,6 @@ components: schemas: MeshTimeoutItem: $ref: 'schema.yaml' - responses: MeshTimeoutCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshTimeoutItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml index 2cedff341775..8ef5550d67c6 100644 --- a/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtls/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTLSCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTLSCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTLSCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTLS @@ -109,7 +109,6 @@ components: schemas: MeshTLSItem: $ref: 'schema.yaml' - responses: MeshTLSCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshTLSItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml index b3f6021e7de2..4120d6f3f6b0 100644 --- a/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtrace/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTraceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTraceCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTraceCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTrace @@ -109,7 +109,6 @@ components: schemas: MeshTraceItem: $ref: 'schema.yaml' - responses: MeshTraceCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshTraceItem: description: Successful response content: diff --git a/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml b/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml index 9a8bcc32e4fa..3fc610cd3f6f 100644 --- a/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml +++ b/pkg/plugins/policies/meshtrafficpermission/api/v1alpha1/rest.yaml @@ -58,13 +58,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/MeshTrafficPermissionCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/MeshTrafficPermissionCreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/MeshTrafficPermissionCreateOrUpdateSuccessResponse' delete: operationId: deleteMeshTrafficPermission @@ -109,7 +109,6 @@ components: schemas: MeshTrafficPermissionItem: $ref: 'schema.yaml' - responses: MeshTrafficPermissionCreateOrUpdateSuccessResponse: type: object properties: @@ -120,6 +119,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: MeshTrafficPermissionItem: description: Successful response content: diff --git a/tools/openapi/templates/endpoints.yaml b/tools/openapi/templates/endpoints.yaml index 0372066cd6b1..965892508b20 100644 --- a/tools/openapi/templates/endpoints.yaml +++ b/tools/openapi/templates/endpoints.yaml @@ -62,13 +62,13 @@ paths: content: application/json: schema: - $ref: '#/components/responses/{{.Name}}CreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/{{.Name}}CreateOrUpdateSuccessResponse' '201': description: Created content: application/json: schema: - $ref: '#/components/responses/{{.Name}}CreateOrUpdateSuccessResponse' + $ref: '#/components/schemas/{{.Name}}CreateOrUpdateSuccessResponse' delete: operationId: delete{{ .Name }} @@ -117,7 +117,6 @@ components: schemas: {{.Name}}Item: $ref: 'schema.yaml' - responses: {{.Name}}CreateOrUpdateSuccessResponse: type: object properties: @@ -128,6 +127,8 @@ components: Warning messages describe a problem the client making the API request should correct or be aware of. items: type: string + + responses: {{.Name}}Item: description: Successful response content: