Skip to content

feat(sdk): automated oas update #8796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5303,6 +5303,7 @@ components:
nullable: true
key:
type: string
nullable: true
tags:
type: array
items:
Expand All @@ -5317,8 +5318,6 @@ components:
id: b2f34145-0343-41a4-9602-4c69dec2f269
key: IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo
additionalProperties: false
required:
- key
KeyAuthWithoutParents:
type: object
properties:
Expand All @@ -5338,6 +5337,7 @@ components:
nullable: true
key:
type: string
nullable: true
tags:
type: array
items:
Expand All @@ -5350,8 +5350,6 @@ components:
id: b2f34145-0343-41a4-9602-4c69dec2f269
key: IL1deIyHyQA40WpeLeA1bIUXuvTwlGjo
additionalProperties: false
required:
- key
KeySet:
type: object
properties:
Expand Down
22 changes: 22 additions & 0 deletions api-specs/Konnect/v0/yaml/mesh-control-planes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ paths:
responses:
'204':
description: No Content
'400':
$ref: '#/components/responses/DeleteMeshControlPlaneValidationError'
'401':
$ref: '#/components/responses/MeshControlPlaneUnauthorizedError'
'403':
Expand Down Expand Up @@ -668,6 +670,17 @@ components:
- field: name
reason: Value is not nullable
source: ''
ZoneStillOnlineExample:
value:
status: 400
title: Bad Request
type: 'https://kongapi.info/konnect/bad-request'
instance: 'konnect:trace:2587793459331520595'
detail: 'Bad Request: cpID [invalid]: zone "zone1" is still online. Disconnect the zone first'
invalid_parameters:
- field: cpID
rule: invalid
reason: zone "zone1" is still online. Disconnect the zone first
UpdateMeshControlPlaneRequestExample:
value:
name: Test Control Plane
Expand Down Expand Up @@ -722,6 +735,15 @@ components:
examples:
Empty Field:
$ref: '#/components/examples/EmptyFieldExample'
DeleteMeshControlPlaneValidationError:
description: Validation Error
content:
application/problem+json:
schema:
$ref: '#/components/schemas/BadRequestError'
examples:
Zone Still Online:
$ref: '#/components/examples/ZoneStillOnlineExample'
UpdateMeshControlPlaneValidationError:
description: Validation Error
content:
Expand Down
3 changes: 3 additions & 0 deletions api-specs/Konnect/v1/yaml/ksearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ components:
attributes:
description: Attributes for the entity.
type: object
match:
description: The matched text from the record.
type: string
required:
- id
- type
Expand Down
17 changes: 17 additions & 0 deletions api-specs/Konnect/v2/yaml/analytics-requests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ components:
- $ref: '#/components/schemas/LatenciesResponseMsFilterByField'
- $ref: '#/components/schemas/LatenciesUpstreamMsFilterByField'
- $ref: '#/components/schemas/PortalFilterByField'
- $ref: '#/components/schemas/RealmFilterByField'
- $ref: '#/components/schemas/ResponseBodySizeFilterByField'
- $ref: '#/components/schemas/ResponseHeaderContentLengthFilterByField'
- $ref: '#/components/schemas/ResponseSourceFilterByField'
Expand Down Expand Up @@ -975,6 +976,22 @@ components:
- $ref: '#/components/schemas/FilterSingleValueUUID'
- $ref: '#/components/schemas/FilterEmpty'
title: Filter by portal
RealmFilterByField:
allOf:
- type: object
properties:
field:
description: The field to filter.
type: string
enum:
- realm
required:
- field
- oneOf:
- $ref: '#/components/schemas/FilterMultiValueUUID'
- $ref: '#/components/schemas/FilterSingleValueUUID'
- $ref: '#/components/schemas/FilterEmpty'
title: Filter by realm
FilterMultiValueNumericBytes:
type: object
properties:
Expand Down
12 changes: 9 additions & 3 deletions api-specs/Konnect/v2/yaml/application-auth-strategies.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Konnect Application Auth Strategies
version: 2.0.0
version: 2.0.1
description: The API for Kong Konnect Portal Application Configuration
contact:
name: Kong
Expand Down Expand Up @@ -1177,7 +1177,7 @@ components:
required:
- key-auth
active:
description: At least one published product version is using this auth strategy.
description: At least one published entity is using this auth strategy.
type: boolean
dcr_provider:
type: object
Expand Down Expand Up @@ -1273,7 +1273,7 @@ components:
required:
- openid-connect
active:
description: At least one published product version is using this auth strategy.
description: At least one published entity is using this auth strategy.
type: boolean
dcr_provider:
type: object
Expand Down Expand Up @@ -1316,6 +1316,9 @@ components:
type: object
discriminator:
propertyName: strategy_type
mapping:
key_auth: '#/components/schemas/AppAuthStrategyKeyAuthRequest'
openid_connect: '#/components/schemas/AppAuthStrategyOpenIDConnectRequest'
oneOf:
- $ref: '#/components/schemas/AppAuthStrategyKeyAuthRequest'
- $ref: '#/components/schemas/AppAuthStrategyOpenIDConnectRequest'
Expand All @@ -1327,6 +1330,9 @@ components:
type: object
discriminator:
propertyName: strategy_type
mapping:
key_auth: '#/components/schemas/AppAuthStrategyKeyAuthResponse'
openid_connect: '#/components/schemas/AppAuthStrategyOpenIDConnectResponse'
oneOf:
- $ref: '#/components/schemas/AppAuthStrategyKeyAuthResponse'
- $ref: '#/components/schemas/AppAuthStrategyOpenIDConnectResponse'
Expand Down
47 changes: 12 additions & 35 deletions api-specs/Konnect/v2/yaml/audit-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ components:
type: integer
example: 10
schemas:
LogFormat:
description: The output format of each log messages.
type: string
default: cef
enum:
- cef
- json
ListAuditLogDestinations:
type: object
properties:
Expand Down Expand Up @@ -271,13 +278,7 @@ components:
type: string
example: 'https://example.com/audit-logs'
log_format:
description: The output format of each log messages.
type: string
example: cef
default: cef
enum:
- cef
- json
$ref: '#/components/schemas/LogFormat'
skip_ssl_verification:
description: Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
type: boolean
Expand Down Expand Up @@ -855,13 +856,7 @@ components:
example: true
default: false
log_format:
description: The output format of each log message.
type: string
example: cef
default: cef
enum:
- cef
- json
$ref: '#/components/schemas/LogFormat'
skip_ssl_verification:
description: |-
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
Expand Down Expand Up @@ -898,13 +893,7 @@ components:
example: Bearer sometoken
writeOnly: true
log_format:
description: The output format of each log message.
type: string
example: cef
default: cef
enum:
- cef
- json
$ref: '#/components/schemas/LogFormat'
skip_ssl_verification:
description: |-
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
Expand Down Expand Up @@ -941,13 +930,7 @@ components:
example: Bearer sometoken
writeOnly: true
log_format:
description: The output format of each log message.
type: string
example: cef
default: cef
enum:
- cef
- json
$ref: '#/components/schemas/LogFormat'
skip_ssl_verification:
description: |-
Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
Expand Down Expand Up @@ -1008,13 +991,7 @@ components:
type: boolean
example: true
log_format:
description: The output format of each log messages.
type: string
example: cef
default: cef
enum:
- cef
- json
$ref: '#/components/schemas/LogFormat'
skip_ssl_verification:
description: Indicates if the SSL certificate verification of the host endpoint should be skipped when delivering payloads.
type: boolean
Expand Down
1 change: 1 addition & 0 deletions api-specs/Konnect/v2/yaml/portal-management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4918,6 +4918,7 @@ components:
description: Filters on the given datetime (RFC-3339) field value.
oneOf:
- type: string
title: DateTimeFieldImplicitEqualsFilter
format: date-time
description: Value strictly equals given RFC-3339 formatted timestamp in UTC
example: '2022-03-30T07:20:50Z'
Expand Down
2 changes: 2 additions & 0 deletions api-specs/Konnect/v3/yaml/identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,8 @@ components:
- Publisher
- Route Admin
- SNI Admin
- Scorecard Admin
- Scorecard Viewer
- Service Admin
- Service Creator
- Service Viewer
Expand Down