Skip to content

Commit 8bc474d

Browse files
authored
feat(sdk): automated oas update
1 parent 916862b commit 8bc474d

File tree

8 files changed

+68
-42
lines changed

8 files changed

+68
-42
lines changed

api-specs/Konnect/control-planes-config/control-planes-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5303,6 +5303,7 @@ components:
53035303
nullable: true
53045304
key:
53055305
type: string
5306+
nullable: true
53065307
tags:
53075308
type: array
53085309
items:
@@ -5317,8 +5318,6 @@ components:
53175318
id: b2f34145-0343-41a4-9602-4c69dec2f269
53185319
key: IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo
53195320
additionalProperties: false
5320-
required:
5321-
- key
53225321
KeyAuthWithoutParents:
53235322
type: object
53245323
properties:
@@ -5338,6 +5337,7 @@ components:
53385337
nullable: true
53395338
key:
53405339
type: string
5340+
nullable: true
53415341
tags:
53425342
type: array
53435343
items:
@@ -5350,8 +5350,6 @@ components:
53505350
id: b2f34145-0343-41a4-9602-4c69dec2f269
53515351
key: IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo
53525352
additionalProperties: false
5353-
required:
5354-
- key
53555353
KeySet:
53565354
type: object
53575355
properties:

api-specs/Konnect/v0/yaml/mesh-control-planes.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ paths:
9191
responses:
9292
'204':
9393
description: No Content
94+
'400':
95+
$ref: '#/components/responses/DeleteMeshControlPlaneValidationError'
9496
'401':
9597
$ref: '#/components/responses/MeshControlPlaneUnauthorizedError'
9698
'403':
@@ -668,6 +670,17 @@ components:
668670
- field: name
669671
reason: Value is not nullable
670672
source: ''
673+
ZoneStillOnlineExample:
674+
value:
675+
status: 400
676+
title: Bad Request
677+
type: 'https://kongapi.info/konnect/bad-request'
678+
instance: 'konnect:trace:2587793459331520595'
679+
detail: 'Bad Request: cpID [invalid]: zone "zone1" is still online. Disconnect the zone first'
680+
invalid_parameters:
681+
- field: cpID
682+
rule: invalid
683+
reason: zone "zone1" is still online. Disconnect the zone first
671684
UpdateMeshControlPlaneRequestExample:
672685
value:
673686
name: Test Control Plane
@@ -722,6 +735,15 @@ components:
722735
examples:
723736
Empty Field:
724737
$ref: '#/components/examples/EmptyFieldExample'
738+
DeleteMeshControlPlaneValidationError:
739+
description: Validation Error
740+
content:
741+
application/problem+json:
742+
schema:
743+
$ref: '#/components/schemas/BadRequestError'
744+
examples:
745+
Zone Still Online:
746+
$ref: '#/components/examples/ZoneStillOnlineExample'
725747
UpdateMeshControlPlaneValidationError:
726748
description: Validation Error
727749
content:

api-specs/Konnect/v1/yaml/ksearch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ components:
210210
attributes:
211211
description: Attributes for the entity.
212212
type: object
213+
match:
214+
description: The matched text from the record.
215+
type: string
213216
required:
214217
- id
215218
- type

api-specs/Konnect/v2/yaml/analytics-requests.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ components:
8989
- $ref: '#/components/schemas/LatenciesResponseMsFilterByField'
9090
- $ref: '#/components/schemas/LatenciesUpstreamMsFilterByField'
9191
- $ref: '#/components/schemas/PortalFilterByField'
92+
- $ref: '#/components/schemas/RealmFilterByField'
9293
- $ref: '#/components/schemas/ResponseBodySizeFilterByField'
9394
- $ref: '#/components/schemas/ResponseHeaderContentLengthFilterByField'
9495
- $ref: '#/components/schemas/ResponseSourceFilterByField'
@@ -975,6 +976,22 @@ components:
975976
- $ref: '#/components/schemas/FilterSingleValueUUID'
976977
- $ref: '#/components/schemas/FilterEmpty'
977978
title: Filter by portal
979+
RealmFilterByField:
980+
allOf:
981+
- type: object
982+
properties:
983+
field:
984+
description: The field to filter.
985+
type: string
986+
enum:
987+
- realm
988+
required:
989+
- field
990+
- oneOf:
991+
- $ref: '#/components/schemas/FilterMultiValueUUID'
992+
- $ref: '#/components/schemas/FilterSingleValueUUID'
993+
- $ref: '#/components/schemas/FilterEmpty'
994+
title: Filter by realm
978995
FilterMultiValueNumericBytes:
979996
type: object
980997
properties:

api-specs/Konnect/v2/yaml/application-auth-strategies.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.3
22
info:
33
title: Konnect Application Auth Strategies
4-
version: 2.0.0
4+
version: 2.0.1
55
description: The API for Kong Konnect Portal Application Configuration
66
contact:
77
name: Kong
@@ -1177,7 +1177,7 @@ components:
11771177
required:
11781178
- key-auth
11791179
active:
1180-
description: At least one published product version is using this auth strategy.
1180+
description: At least one published entity is using this auth strategy.
11811181
type: boolean
11821182
dcr_provider:
11831183
type: object
@@ -1273,7 +1273,7 @@ components:
12731273
required:
12741274
- openid-connect
12751275
active:
1276-
description: At least one published product version is using this auth strategy.
1276+
description: At least one published entity is using this auth strategy.
12771277
type: boolean
12781278
dcr_provider:
12791279
type: object
@@ -1316,6 +1316,9 @@ components:
13161316
type: object
13171317
discriminator:
13181318
propertyName: strategy_type
1319+
mapping:
1320+
key_auth: '#/components/schemas/AppAuthStrategyKeyAuthRequest'
1321+
openid_connect: '#/components/schemas/AppAuthStrategyOpenIDConnectRequest'
13191322
oneOf:
13201323
- $ref: '#/components/schemas/AppAuthStrategyKeyAuthRequest'
13211324
- $ref: '#/components/schemas/AppAuthStrategyOpenIDConnectRequest'
@@ -1327,6 +1330,9 @@ components:
13271330
type: object
13281331
discriminator:
13291332
propertyName: strategy_type
1333+
mapping:
1334+
key_auth: '#/components/schemas/AppAuthStrategyKeyAuthResponse'
1335+
openid_connect: '#/components/schemas/AppAuthStrategyOpenIDConnectResponse'
13301336
oneOf:
13311337
- $ref: '#/components/schemas/AppAuthStrategyKeyAuthResponse'
13321338
- $ref: '#/components/schemas/AppAuthStrategyOpenIDConnectResponse'

api-specs/Konnect/v2/yaml/audit-logs.yaml

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,13 @@ components:
243243
type: integer
244244
example: 10
245245
schemas:
246+
LogFormat:
247+
description: The output format of each log messages.
248+
type: string
249+
default: cef
250+
enum:
251+
- cef
252+
- json
246253
ListAuditLogDestinations:
247254
type: object
248255
properties:
@@ -271,13 +278,7 @@ components:
271278
type: string
272279
example: 'https://example.com/audit-logs'
273280
log_format:
274-
description: The output format of each log messages.
275-
type: string
276-
example: cef
277-
default: cef
278-
enum:
279-
- cef
280-
- json
281+
$ref: '#/components/schemas/LogFormat'
281282
skip_ssl_verification:
282283
description: Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
283284
type: boolean
@@ -855,13 +856,7 @@ components:
855856
example: true
856857
default: false
857858
log_format:
858-
description: The output format of each log message.
859-
type: string
860-
example: cef
861-
default: cef
862-
enum:
863-
- cef
864-
- json
859+
$ref: '#/components/schemas/LogFormat'
865860
skip_ssl_verification:
866861
description: |-
867862
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
@@ -898,13 +893,7 @@ components:
898893
example: Bearer sometoken
899894
writeOnly: true
900895
log_format:
901-
description: The output format of each log message.
902-
type: string
903-
example: cef
904-
default: cef
905-
enum:
906-
- cef
907-
- json
896+
$ref: '#/components/schemas/LogFormat'
908897
skip_ssl_verification:
909898
description: |-
910899
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
@@ -941,13 +930,7 @@ components:
941930
example: Bearer sometoken
942931
writeOnly: true
943932
log_format:
944-
description: The output format of each log message.
945-
type: string
946-
example: cef
947-
default: cef
948-
enum:
949-
- cef
950-
- json
933+
$ref: '#/components/schemas/LogFormat'
951934
skip_ssl_verification:
952935
description: |-
953936
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
@@ -1008,13 +991,7 @@ components:
1008991
type: boolean
1009992
example: true
1010993
log_format:
1011-
description: The output format of each log messages.
1012-
type: string
1013-
example: cef
1014-
default: cef
1015-
enum:
1016-
- cef
1017-
- json
994+
$ref: '#/components/schemas/LogFormat'
1018995
skip_ssl_verification:
1019996
description: Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
1020997
type: boolean

api-specs/Konnect/v2/yaml/portal-management.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4918,6 +4918,7 @@ components:
49184918
description: Filters on the given datetime (RFC-3339) field value.
49194919
oneOf:
49204920
- type: string
4921+
title: DateTimeFieldImplicitEqualsFilter
49214922
format: date-time
49224923
description: Value strictly equals given RFC-3339 formatted timestamp in UTC
49234924
example: '2022-03-30T07:20:50Z'

api-specs/Konnect/v3/yaml/identity.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,8 @@ components:
29092909
- Publisher
29102910
- Route Admin
29112911
- SNI Admin
2912+
- Scorecard Admin
2913+
- Scorecard Viewer
29122914
- Service Admin
29132915
- Service Creator
29142916
- Service Viewer

0 commit comments

Comments
 (0)