Skip to content

Commit

Permalink
feat(sdk): automated oas update
Browse files Browse the repository at this point in the history
  • Loading branch information
kong-apiops committed Nov 12, 2024
1 parent b88f3b6 commit 73742c9
Show file tree
Hide file tree
Showing 10 changed files with 929 additions and 67 deletions.
621 changes: 577 additions & 44 deletions api-specs/Konnect/control-planes-config/control-planes-config.yaml

Large diffs are not rendered by default.

38 changes: 36 additions & 2 deletions api-specs/Konnect/v0/yaml/mesh-control-planes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ components:
type: string
enum:
- required
- max_length
- is_array
- is_base64
- is_boolean
Expand Down Expand Up @@ -388,6 +387,8 @@ components:
- min_lowercase
- min_uppercase
- min_symbols
- min_items
- min
nullable: false
readOnly: true
minimum:
Expand All @@ -398,14 +399,46 @@ components:
example: body
reason:
type: string
example: is a required field
example: must have at least 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- minimum
InvalidParameterMaximumLength:
type: object
properties:
field:
type: string
example: name
readOnly: true
rule:
description: invalid parameters rules
type: string
enum:
- max_length
- max_items
- max
nullable: false
readOnly: true
maximum:
type: integer
example: 8
source:
type: string
example: body
reason:
type: string
example: must not have more than 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- maximum
InvalidParameterChoiceItem:
type: object
properties:
Expand Down Expand Up @@ -480,6 +513,7 @@ components:
oneOf:
- $ref: '#/components/schemas/InvalidParameterStandard'
- $ref: '#/components/schemas/InvalidParameterMinimumLength'
- $ref: '#/components/schemas/InvalidParameterMaximumLength'
- $ref: '#/components/schemas/InvalidParameterChoiceItem'
- $ref: '#/components/schemas/InvalidParameterDependentItem'
minItems: 1
Expand Down
38 changes: 36 additions & 2 deletions api-specs/Konnect/v1/yaml/ksearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ components:
type: string
enum:
- required
- max_length
- is_array
- is_base64
- is_boolean
Expand Down Expand Up @@ -315,6 +314,8 @@ components:
- min_lowercase
- min_uppercase
- min_symbols
- min_items
- min
nullable: false
readOnly: true
minimum:
Expand All @@ -325,14 +326,46 @@ components:
example: body
reason:
type: string
example: is a required field
example: must have at least 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- minimum
InvalidParameterMaximumLength:
type: object
properties:
field:
type: string
example: name
readOnly: true
rule:
description: invalid parameters rules
type: string
enum:
- max_length
- max_items
- max
nullable: false
readOnly: true
maximum:
type: integer
example: 8
source:
type: string
example: body
reason:
type: string
example: must not have more than 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- maximum
InvalidParameterChoiceItem:
type: object
properties:
Expand Down Expand Up @@ -407,6 +440,7 @@ components:
oneOf:
- $ref: '#/components/schemas/InvalidParameterStandard'
- $ref: '#/components/schemas/InvalidParameterMinimumLength'
- $ref: '#/components/schemas/InvalidParameterMaximumLength'
- $ref: '#/components/schemas/InvalidParameterChoiceItem'
- $ref: '#/components/schemas/InvalidParameterDependentItem'
minItems: 1
Expand Down
40 changes: 37 additions & 3 deletions api-specs/Konnect/v2/yaml/api-products.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ components:
description: The name of the API product version specification
type: string
example: oas.yaml
pattern: .+(\.yaml|\.yml|\.json)
pattern: '^.+(?:\.yaml|\.yml|\.json)$'
content:
description: The contents of the API product version specification
example: My YAML or JSON formatted OAS content
Expand Down Expand Up @@ -1539,7 +1539,6 @@ components:
type: string
enum:
- required
- max_length
- is_array
- is_base64
- is_boolean
Expand Down Expand Up @@ -1597,6 +1596,8 @@ components:
- min_lowercase
- min_uppercase
- min_symbols
- min_items
- min
nullable: false
readOnly: true
minimum:
Expand All @@ -1607,14 +1608,46 @@ components:
example: body
reason:
type: string
example: is a required field
example: must have at least 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- minimum
InvalidParameterMaximumLength:
type: object
properties:
field:
type: string
example: name
readOnly: true
rule:
description: invalid parameters rules
type: string
enum:
- max_length
- max_items
- max
nullable: false
readOnly: true
maximum:
type: integer
example: 8
source:
type: string
example: body
reason:
type: string
example: must not have more than 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- maximum
InvalidParameterChoiceItem:
type: object
properties:
Expand Down Expand Up @@ -1689,6 +1722,7 @@ components:
oneOf:
- $ref: '#/components/schemas/InvalidParameterStandard'
- $ref: '#/components/schemas/InvalidParameterMinimumLength'
- $ref: '#/components/schemas/InvalidParameterMaximumLength'
- $ref: '#/components/schemas/InvalidParameterChoiceItem'
- $ref: '#/components/schemas/InvalidParameterDependentItem'
minItems: 1
Expand Down
38 changes: 36 additions & 2 deletions api-specs/Konnect/v2/yaml/application-auth-strategies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,6 @@ components:
type: string
enum:
- required
- max_length
- is_array
- is_base64
- is_boolean
Expand Down Expand Up @@ -1572,6 +1571,8 @@ components:
- min_lowercase
- min_uppercase
- min_symbols
- min_items
- min
nullable: false
readOnly: true
minimum:
Expand All @@ -1582,14 +1583,46 @@ components:
example: body
reason:
type: string
example: is a required field
example: must have at least 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- minimum
InvalidParameterMaximumLength:
type: object
properties:
field:
type: string
example: name
readOnly: true
rule:
description: invalid parameters rules
type: string
enum:
- max_length
- max_items
- max
nullable: false
readOnly: true
maximum:
type: integer
example: 8
source:
type: string
example: body
reason:
type: string
example: must not have more than 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- maximum
InvalidParameterChoiceItem:
type: object
properties:
Expand Down Expand Up @@ -1664,6 +1697,7 @@ components:
oneOf:
- $ref: '#/components/schemas/InvalidParameterStandard'
- $ref: '#/components/schemas/InvalidParameterMinimumLength'
- $ref: '#/components/schemas/InvalidParameterMaximumLength'
- $ref: '#/components/schemas/InvalidParameterChoiceItem'
- $ref: '#/components/schemas/InvalidParameterDependentItem'
minItems: 1
Expand Down
38 changes: 36 additions & 2 deletions api-specs/Konnect/v2/yaml/audit-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ components:
type: string
enum:
- required
- max_length
- is_array
- is_base64
- is_boolean
Expand Down Expand Up @@ -454,6 +453,8 @@ components:
- min_lowercase
- min_uppercase
- min_symbols
- min_items
- min
nullable: false
readOnly: true
minimum:
Expand All @@ -464,14 +465,46 @@ components:
example: body
reason:
type: string
example: is a required field
example: must have at least 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- minimum
InvalidParameterMaximumLength:
type: object
properties:
field:
type: string
example: name
readOnly: true
rule:
description: invalid parameters rules
type: string
enum:
- max_length
- max_items
- max
nullable: false
readOnly: true
maximum:
type: integer
example: 8
source:
type: string
example: body
reason:
type: string
example: must not have more than 8 characters
readOnly: true
additionalProperties: false
required:
- field
- reason
- rule
- maximum
InvalidParameterChoiceItem:
type: object
properties:
Expand Down Expand Up @@ -546,6 +579,7 @@ components:
oneOf:
- $ref: '#/components/schemas/InvalidParameterStandard'
- $ref: '#/components/schemas/InvalidParameterMinimumLength'
- $ref: '#/components/schemas/InvalidParameterMaximumLength'
- $ref: '#/components/schemas/InvalidParameterChoiceItem'
- $ref: '#/components/schemas/InvalidParameterDependentItem'
minItems: 1
Expand Down
Loading

0 comments on commit 73742c9

Please sign in to comment.