Skip to content

Commit

Permalink
fix: Set mapping for oneOf QoveryComponentInFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola committed Feb 28, 2025
1 parent 78d2d78 commit 7d2b200
Showing 1 changed file with 71 additions and 61 deletions.
132 changes: 71 additions & 61 deletions websocket/websocket-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,16 @@ components:
- 'null'
format: int32
minimum: 0
MissingComponentValue:
type: object
required:
- component_name
- type
properties:
component_name:
type: string
type:
type: string
NodeAddressDto:
type: object
required:
Expand Down Expand Up @@ -1118,6 +1128,33 @@ components:
type: integer
format: int32
minimum: 0
PodInErrorValue:
type: object
required:
- component_name
- pod_name
- container_name
- level
- type
properties:
component_name:
type: string
container_name:
type: string
level:
$ref: '#/components/schemas/QoveryComponentContainerStatusLevel'
message:
type:
- string
- 'null'
pod_name:
type: string
reason:
type:
- string
- 'null'
type:
type: string
PodQoveryServiceInfoDto:
type: object
required:
Expand Down Expand Up @@ -1210,32 +1247,37 @@ components:
oneOf:
- type: object
required:
- Ok
- kube_version
- type
properties:
Ok:
type: object
required:
- kube_version
properties:
kube_version:
type: string
kube_version:
type: string
type:
type: string
enum:
- Ok
- type: object
required:
- Drift
- kube_version
- expected_kube_version
- type
properties:
Drift:
type: object
required:
- kube_version
- expected_kube_version
properties:
expected_kube_version:
type: string
kube_version:
type: string
- type: string
enum:
- Unknown
expected_kube_version:
type: string
kube_version:
type: string
type:
type: string
enum:
- Drift
- type: object
required:
- type
properties:
type:
type: string
enum:
- Unknown
QoveryComponentContainerStatusIssue:
type: object
required:
Expand All @@ -1258,45 +1300,13 @@ components:
- WARNING
QoveryComponentInFailure:
oneOf:
- type: object
required:
- POD_IN_ERROR
properties:
POD_IN_ERROR:
type: object
required:
- component_name
- pod_name
- container_name
- level
properties:
component_name:
type: string
container_name:
type: string
level:
$ref: '#/components/schemas/QoveryComponentContainerStatusLevel'
message:
type:
- string
- 'null'
pod_name:
type: string
reason:
type:
- string
- 'null'
- type: object
required:
- MISSING_COMPONENT
properties:
MISSING_COMPONENT:
type: object
required:
- component_name
properties:
component_name:
type: string
- $ref: '#/components/schemas/PodInErrorValue'
- $ref: '#/components/schemas/MissingComponentValue'
discriminator:
propertyName: type
mapping:
MISSING_COMPONENT: '#/components/schemas/MissingComponentValue'
POD_IN_ERROR: '#/components/schemas/PodInErrorValue'
QoveryNodeFailure:
type: object
required:
Expand Down

0 comments on commit 7d2b200

Please sign in to comment.