From 9840ff71b858d3ee83e7c8d82d9f725aaa54ac59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20V=C3=A4lim=C3=A4ki?= Date: Wed, 18 Nov 2026 14:31:45 +0200 Subject: [PATCH] fix(overlay): remove fixed targets for v0.0.115 spec --- generator/openapi/overlay.yaml | 59 ---------------------------------- 1 file changed, 59 deletions(-) diff --git a/generator/openapi/overlay.yaml b/generator/openapi/overlay.yaml index 8ec4ded..c9db73c 100644 --- a/generator/openapi/overlay.yaml +++ b/generator/openapi/overlay.yaml @@ -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. @@ -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]. @@ -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.