-
Notifications
You must be signed in to change notification settings - Fork 11
fix: flip source and target #622
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 |
|---|---|---|
|
|
@@ -4818,7 +4818,7 @@ export interface operations { | |
| ruleId: string; | ||
| type: string; | ||
| reference: string; | ||
| target: components["schemas"]["Resource"]; | ||
| source: components["schemas"]["Resource"]; | ||
|
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. 💡 Verification agent 🧩 Analysis chainProperty rename aligns with coordinated relationship directionality change. This change from Since this affects the API contract for 🏁 Script executed: #!/bin/bash
# Description: Verify all usages of the relationships property have been updated to use 'source' instead of 'target'
# Search for any remaining references to relationships.target that should be relationships.source
rg -A 3 -B 3 "relationships.*\.target" --type=ts --type=js
# Search for any references to the old target property in relationship contexts
rg -A 3 -B 3 "target.*components\[.*Resource.*\]" --type=ts
# Check for consistent usage of the new source property
rg -A 3 -B 3 "relationships.*\.source" --type=ts --type=jsLength of output: 2624 Regenerate Node SDK schema to update The OpenAPI change flipped the relationship property in the API from
Please regenerate the SDK schema (e.g. rerun openapi-typescript against the updated spec) so that source: components["schemas"]["Resource"];and verify no residual 🤖 Prompt for AI Agents |
||
| }; | ||
| }; | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Breaking API change: Verify client compatibility.
The change from
targettosourcein the relationship mapping aligns with the systematic flip, but this modifies the API response structure. SincegetResourceParentsreturns parent relationships, usingsourceis semantically correct.Ensure that:
sourceinstead oftarget🏁 Script executed:
Length of output: 66515
BREAKING API CHANGE: Update API clients & tests for
sourcefieldThe mapping in
get-job.tsnow spreadssourceinstead oftarget, so any consumer expectingrelationship.targetwill break.Please update the following:
e2e/tests/api/resource-relationships.spec.ts– change references fromrelationships?.[reference].targetto.source.apps/webservice, external clients) to userelationship.source.sourceproperty.🤖 Prompt for AI Agents