-
Notifications
You must be signed in to change notification settings - Fork 515
fix(cli-go): repoint overlay.yaml at renamed JitListAccessResponse schema #6425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,18 +38,18 @@ actions: | |
| - target: $.components.schemas.V1CreateProjectBody.properties.postgres_engine | ||
| description: Removes deprecated null-only field that oapi-codegen cannot map | ||
| remove: true | ||
| - target: $.components.schemas.JitListAccessResponse.properties.items.items.anyOf[0].properties.invite_id | ||
| - target: $.components.schemas.JitListAccessResponse_Output.properties.items.items.anyOf[0].properties.invite_id | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ NIT · The repaired JIT overlay selectors remain coupled to the concrete JitListAccessResponse_Output schema name, leaving code generation vulnerable to the same failure mode on another upstream rename. Evidence: apps/cli-go/api/overlay.yaml:41-57 hardcodes JitListAccessResponse_Output in all three selectors, while apps/cli-go/main.go:7-8 regenerates from a live API specification and other structural overlay selectors use schema wildcards. Suggested fix: Use a sufficiently specific structural wildcard selector, with a test or uniqueness check ensuring it only matches the intended JIT response shape. |
||
| description: Replaces null-only project user invite id with nullable UUID for oapi-codegen | ||
| update: | ||
| type: string | ||
| format: uuid | ||
| nullable: true | ||
| - target: $.components.schemas.JitListAccessResponse.properties.items.items.anyOf[0].properties.expires_at | ||
| - target: $.components.schemas.JitListAccessResponse_Output.properties.items.items.anyOf[0].properties.expires_at | ||
| description: Replaces null-only project user invite expiry with nullable string for oapi-codegen | ||
| update: | ||
| type: string | ||
| nullable: true | ||
| - target: $.components.schemas.JitListAccessResponse.properties.items.items.anyOf[1].properties.user_id | ||
| - target: $.components.schemas.JitListAccessResponse_Output.properties.items.items.anyOf[1].properties.user_id | ||
| description: Replaces null-only invited user id with nullable UUID for oapi-codegen | ||
| update: | ||
| type: string | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.