Skip to content
Open
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
59 changes: 0 additions & 59 deletions generator/openapi/overlay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,6 @@ actions:
- target: $.components.schemas.firewallRulesetErrorResponse.properties.invalid_params.required
remove: true

# gatewayErrorResponse.invalid_params is an array with properties and required at the
# array level; move them into items. Static copy of spec.json values, checked by
# generator/tests/test_openapi_overlay.py.
- target: $.components.schemas.gatewayErrorResponse.properties.invalid_params.properties
remove: true
- target: $.components.schemas.gatewayErrorResponse.properties.invalid_params
remove: true
- target: $.components.schemas.gatewayErrorResponse.properties
update:
invalid_params:
type: array
examples:
- []
items:
type: object
properties:
name:
type: string
examples:
- zone
- networks.0.ip_address
description: Path to the field with invalid parameter.
reason:
type: string
examples:
- Zone is not valid.
description: Human-readable error message.
title: InvalidParameters
required:
- name
- reason
description: List of invalid parameters in the request.

# POST /1.3/kubernetes documents 201, but the API returns 200 OK, so the SDK
# treated successful creation as an error.
# Source fix needed: document the 200 response.
Expand Down Expand Up @@ -163,15 +130,6 @@ actions:
update:
maxProperties: 0

# These empty pseudo-properties are schema keywords accidentally nested as model fields.
# Source fix needed: move type/required/additionalProperties to the schema object.
- target: $.components.schemas.accountResourceLimits.properties.type
remove: true
- target: $.components.schemas.accountResourceLimits.properties.required
remove: true
- target: $.components.schemas.accountResourceLimits.properties.additionalProperties
remove: true

# Example values below break their own schemas, so mocks and example-driven tests fail.
# Source fix needed: make each example match its schema.
# Account type "mymain" is not in enum [main, sub].
Expand Down Expand Up @@ -320,23 +278,6 @@ actions:
- target: $.components.schemas.databaseNetworkCreate.examples[*].type
update: private

# Multiple firewall rules are wrapped in an object with a rules property.
# Source fix needed: wrap the existing rule array without changing its values.
- target: $.components.schemas.firewallRulesetFirewallMultipleRuleCreate.examples
remove: true
- target: $.components.schemas.firewallRulesetFirewallMultipleRuleCreate
update:
examples:
- rules:
- direction: in
action: accept
family: IPv4
protocol: tcp
enabled: false
- direction: out
action: drop
family: IPv6

# Network create and modify requests send labels as a plain array of key/value pairs,
# not the {"label": [...]} wrapper that the networkLabels schema describes.
# Source fix needed: define the request labels property as an array of networkLabel.
Expand Down
Loading