Skip to content

chore: disambiguate model names and remove kms - #1140

Merged
merll merged 2 commits into
mainfrom
APL-2288
Nov 27, 2026
Merged

merll merged 2 commits into
mainfrom
APL-2288

Conversation

@merll

@merll merll commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Client generators such as openapi-generator use the titles for generating class or model names. If a nested object definition uses the same title as the parent, it creates a self-reference which is incorrect.
This PR prefixes one instance of the title field. For not affecting legacy auto-generated forms in Console, the non-displaying instance was changed.

Instead of updating kms, it has been removed as it is no longer part of the schema.

Also a misplaced additionalProperties was moved.

This PR requires regenerating the Redux store in Console. This is implemented in feature branch linode/apl-console#886

Copilot AI balanced review requested due to automatic review settings November 25, 2026 13:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues blocking the schema disambiguation and KMS cleanup.

No open issues 🎉

What changed in this PR

Disambiguates OpenAPI model names to prevent incorrect self-references in generated clients, while keeping legacy Console form labels intact. It also removes obsolete KMS definitions and settings integration.

Changes:

  • Prefix hidden schema titles for DNS, object storage, builds, and workload image updates.
  • Extract a shared image-update strategy schema and move additionalProperties to annotation items.
  • Remove KMS schemas, model declarations, and file mapping.

The Console Redux store must be regenerated to consume the updated schemas.

File Description
src/​otomi-models.ts Remove KMS declarations and the Versions alias.
src/​openapi/​workload.yaml Share the image-update strategy schema and disambiguate variant titles.
src/​openapi/​settings.yaml Rename the object-storage variant title and remove KMS settings.
src/​openapi/​definitions.yaml Disambiguate DNS titles, correct annotation constraints, and remove the KMS schema.
src/​openapi/​build.yaml Disambiguate Docker and Buildpacks variant titles.
src/​fileStore/​file-map.ts Remove the KMS settings file mapping.

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Coverage report

St.❔
Category Percentage Covered / Total
🟡 Statements
60.81% (-0.01% 🔻)
3041/5001
🔴 Branches 47.44% 897/1891
🔴 Functions 54.62% 443/811
🟡 Lines
60.1% (-0.01% 🔻)
2779/4624
Show files with reduced coverage 🔻
St.❔
File Statements Branches Functions Lines
🟢
... / file-map.ts
89.83% (-0.17% 🔻)
78.57% 85.71%
89.83% (-0.17% 🔻)

Test suite run success

909 tests passing in 32 suites.

Report generated by 🧪jest coverage report action from c3faf7a

Copilot AI balanced review requested due to automatic review settings November 25, 2026 14:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the OpenAPI schema disambiguation and removal of obsolete KMS support.

No open issues 🎉

Review effort: Balanced

@merll
merll merged commit a4c7d2a into main Nov 27, 2026
12 checks passed
@merll
merll deleted the APL-2288 branch November 27, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants