Skip to content

Commit

Permalink
Revert "chore(oapi): move CreateOrUpdateSuccessResponse under `compon…
Browse files Browse the repository at this point in the history
…ents.responses`" (#12602)

Reverts #12558

caused an error in parent project, need to fix it but don't have time
now
  • Loading branch information
slonka authored Jan 20, 2025
1 parent 4ec17b7 commit a00b2e0
Show file tree
Hide file tree
Showing 24 changed files with 423 additions and 408 deletions.
7 changes: 4 additions & 3 deletions api/mesh/v1alpha1/mesh/rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -84,7 +84,6 @@ components:
schemas:
MeshItem:
$ref: 'schema.yaml'
responses:
MeshCreateOrUpdateSuccessResponse:
type: object
properties:
Expand All @@ -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:
Expand Down
7 changes: 4 additions & 3 deletions api/mesh/v1alpha1/meshgateway/rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -109,7 +109,6 @@ components:
schemas:
MeshGatewayItem:
$ref: 'schema.yaml'
responses:
MeshGatewayCreateOrUpdateSuccessResponse:
type: object
properties:
Expand All @@ -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:
Expand Down
Loading

0 comments on commit a00b2e0

Please sign in to comment.