Skip to content

Commit

Permalink
feat(sdk): automated oas update (#7636)
Browse files Browse the repository at this point in the history
Updated in Konnect too
  • Loading branch information
kong-apiops authored Jul 12, 2024
1 parent ee3c9f0 commit bb22a36
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 181 deletions.
4 changes: 0 additions & 4 deletions api-specs/Konnect/v1/yaml/ksearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ paths:
$ref: '#/components/responses/SearchResponse'
'400':
$ref: '#/components/responses/SearchBadRequest'
servers:
- url: https://global.api.konghq.com/
/search/types:
get:
operationId: get-search-types
Expand All @@ -56,8 +54,6 @@ paths:
responses:
'200':
$ref: '#/components/responses/SearchTypesResponse'
servers:
- url: https://global.api.konghq.com/
components:
responses:
SearchResponse:
Expand Down
1 change: 1 addition & 0 deletions api-specs/Konnect/v2/yaml/api-products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,7 @@ components:
type: string
description: The name of the API product version specification
example: oas.yaml
pattern: .+(\.yaml|\.yml|\.json)
content:
type: string
description: The contents of the API product version specification
Expand Down
128 changes: 49 additions & 79 deletions api-specs/Konnect/v2/yaml/portal-management.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Portal Management
version: 2.1.0
version: 2.2.0
description: The management API for Portals
contact:
name: Kong
Expand Down Expand Up @@ -151,7 +151,13 @@ paths:
$ref: '#/components/responses/Forbidden'
/portals/{portalId}:
parameters:
- $ref: '#/components/parameters/parameters-PortalId'
- name: portalId
in: path
schema:
type: string
format: uuid
required: true
description: ID of the portal.
get:
summary: Get Portal
description: >-
Expand Down Expand Up @@ -5690,7 +5696,7 @@ components:
default_application_auth_strategy_id:
$ref: '#/components/schemas/DefaultApplicationAuthStratID'
labels:
$ref: '#/components/schemas/PortalsLabels'
$ref: '#/components/schemas/Labels'
application_count:
type: number
description: Number of applications created in the portal.
Expand Down Expand Up @@ -5792,7 +5798,7 @@ components:
default_application_auth_strategy_id:
$ref: '#/components/schemas/DefaultApplicationAuthStratID'
labels:
$ref: '#/components/schemas/PortalsLabelsNullable'
$ref: '#/components/schemas/Labels'
example:
name: DevPortal
is_public: false
Expand Down Expand Up @@ -5878,7 +5884,7 @@ components:
default_application_auth_strategy_id:
$ref: '#/components/schemas/DefaultApplicationAuthStratID'
labels:
$ref: '#/components/schemas/PortalsLabelsNullable'
$ref: '#/components/schemas/LabelsUpdate'
example:
name: Aperture
is_public: false
Expand Down Expand Up @@ -6734,42 +6740,6 @@ components:
- dark_mode
- custom
example: mint_rocket
PortalsLabels:
title: Labels
type: object
description: >
description: A maximum of 50 user-defined labels are allowed on this
resource.
Keys must not start with kong, konnect, insomnia, mesh, kic or _, which
are reserved for Kong.
Keys are case-sensitive.
additionalProperties:
type: string
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z\-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
default: {}
PortalsLabelsNullable:
nullable: true
title: Labels
type: object
description: >
description: A maximum of 50 user-defined labels are allowed on this
resource.
Keys must not start with kong, konnect, insomnia, mesh, kic or _, which
are reserved for Kong.
Keys are case-sensitive.
additionalProperties:
type: string
nullable: true
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z\-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
default: {}
StringFieldEqualsFilter:
title: StringFieldEqualsFilter
description: Filters on the given string field value by exact match.
Expand Down Expand Up @@ -6931,6 +6901,24 @@ components:
example: '2022-11-04T20:10:06.927Z'
description: An ISO-8601 timestamp representation of entity update date.
readOnly: true
Labels:
title: Labels
type: object
example:
env: test
maxProperties: 50
description: >
Labels store metadata of an entity that can be used for filtering an
entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong",
"konnect", "mesh", "kic", or "_".
additionalProperties:
type: string
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
BaseError:
type: object
title: Error
Expand Down Expand Up @@ -7195,6 +7183,26 @@ components:
example: kong:trace:1234567890
detail:
example: Not found
LabelsUpdate:
type: object
nullable: true
description: >
Labels store metadata of an entity that can be used for filtering an
entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong",
"konnect", "mesh", "kic", or "_".
example:
env: test
maxProperties: 50
additionalProperties:
type: string
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
nullable: true
writeOnly: true
ConflictError:
allOf:
- $ref: '#/components/schemas/BaseError'
Expand All @@ -7210,24 +7218,6 @@ components:
example: kong:trace:1234567890
detail:
example: Conflict
Labels:
title: Labels
type: object
example:
env: test
maxProperties: 50
description: >
Labels store metadata of an entity that can be used for filtering an
entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong",
"konnect", "mesh", "kic", or "_".
additionalProperties:
type: string
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
schemas-UUID:
type: string
format: uuid
Expand Down Expand Up @@ -7375,26 +7365,6 @@ components:
- self_managed_client_credentials
auth_methods:
$ref: '#/components/schemas/AuthMethods'
LabelsUpdate:
type: object
nullable: true
description: >
Labels store metadata of an entity that can be used for filtering an
entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong",
"konnect", "mesh", "kic", or "_".
example:
env: test
maxProperties: 50
additionalProperties:
type: string
pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
minLength: 1
maxLength: 63
nullable: true
writeOnly: true
ImageDataUri:
title: ImageDataUri
type: string
Expand Down
Loading

0 comments on commit bb22a36

Please sign in to comment.