Skip to content

chore: move inline objects to refs and drop kms - #1125

Draft
merll wants to merge 17 commits into
mainfrom
api-oneof-ref
Draft

merll wants to merge 17 commits into
mainfrom
api-oneof-ref

Conversation

@merll

@merll merll commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This PR moves inline objects nested in oneOf to named object definitions. Structurally they have not been changed.

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

Copilot AI balanced review requested due to automatic review settings November 5, 2026 09:40
@github-actions

github-actions Bot commented Nov 5, 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 ef228ee

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.

🟡 Changes recommended

Three ref entries in src/openapi/workload.yaml must use $ref so dereferencing resolves the image-update schemas and avoids publishing an invalid or unsatisfiable Workload schema.

1 open issue
What changed in this PR

This PR refactors the API’s OpenAPI schemas into reusable definitions and removes KMS settings from the schema, models, and file mappings.

Changes:

  • Extracts DNS providers into a dedicated schema file.
  • Replaces inline build, image-update, and object-storage options with schema references.
  • Removes KMS definitions, model entries, and persistence mapping.
File Description
src/​otomi-models.ts Removes KMS types and resource-kind entries.
src/​openapi/​workload.yaml Extracts shared image-update schemas.
src/​openapi/​settings.yaml Extracts object-storage options and removes KMS settings.
src/​openapi/​dns.yaml Adds reusable DNS provider schemas.
src/​openapi/​definitions.yaml References extracted DNS schemas and removes KMS definitions.
src/​openapi/​build.yaml Extracts Docker and Buildpacks schemas.
src/​fileStore/​file-map.ts Removes the KMS settings file mapping.

Review effort: Balanced

Comment thread src/openapi/workload.yaml Resolved
Copilot AI balanced review requested due to automatic review settings November 5, 2026 09:44

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 are reported for the schema refactoring and removal of obsolete KMS settings.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@merll
merll marked this pull request as draft November 6, 2026 08:03
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