Skip to content

Commit

Permalink
fix(rest-api): improve openapi-apis by adding required on discriminat…
Browse files Browse the repository at this point in the history
…or property

(cherry picked from commit 17f95f7)
  • Loading branch information
ThibaudAV authored and phiz71 committed Mar 28, 2024
1 parent d5d77d3 commit a5ea47b
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -2051,14 +2051,14 @@ components:
$ref: "#/components/schemas/Property"
_links:
$ref: "#/components/schemas/ApiLinks"
required:
- definitionVersion
discriminator:
propertyName: definitionVersion
mapping:
V1: ApiV1
V2: ApiV2
V4: ApiV4
required:
- definitionVersion
ApiV1:
type: object
title: "ApiV1"
Expand Down Expand Up @@ -3248,8 +3248,8 @@ components:
example: 2023-05-25T12:40:46.184Z
validation:
$ref: "#/components/schemas/PlanValidation"
required:
- definitionVersion
required:
- definitionVersion
discriminator:
propertyName: definitionVersion
mapping:
Expand Down Expand Up @@ -4651,6 +4651,10 @@ components:
type: string
description: The body of the request
example: my body
provider:
$ref: "#/components/schemas/DynamicPropertyProvider"
required:
- provider
HttpHeader:
type: object
properties:
Expand Down Expand Up @@ -4933,6 +4937,8 @@ components:
properties:
type:
$ref: "#/components/schemas/TrustStoreType"
required:
- type
discriminator:
propertyName: type
mapping:
Expand Down

0 comments on commit a5ea47b

Please sign in to comment.