-
Notifications
You must be signed in to change notification settings - Fork 77
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
feat: change openapi spec for transactions to consider resource manager #2486
Conversation
api/openapi.yaml
Outdated
items: | ||
type: array | ||
items: | ||
$ref: "./transactions.yaml#/components/schemas/Transaction" |
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.
Should we update this Transaction def to include the type
and spec
format?
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.
+1
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.
oh yeah, forgot we don't have those fields in this object. Fixing that!
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.
@mathnogueira there is one change that we need to implement, regarding the use of augmented entities. We have now 2 separated fields for Steps (full test) and stepIDs (just the ids).
For backwards compatibility with the yaml file, I used the steps
name for the stepIDs, and fullSteps
for the field containing the entire test definition of each step. Feel free to use a better name for this.
Something like this? Transaction:
type: object
properties:
steps:
type: array
description: list of steps of the transaction containing just each test id
items:
type: string
fullSteps:
type: array
description: list of steps of the transaction containing the whole test object
items:
$ref: "./tests.yaml#/components/schemas/Test" |
@mathnogueira yeap, exactly that! |
* change openapi spec for transactions to consider resource manager * use resource formatted object for input and output * add fullsteps field for transactions * Revert "feat: change openapi spec for transactions to consider resource manager" (#2497) Revert "feat: change openapi spec for transactions to consider resource manager (#2486)" This reverts commit 22f7dd1. --------- Co-authored-by: Matheus Nogueira <[email protected]>
…er (#2486) * change openapi spec for transactions to consider resource manager * use resource formatted object for input and output * add fullsteps field for transactions
…er (#2486) * change openapi spec for transactions to consider resource manager * use resource formatted object for input and output * add fullsteps field for transactions
This PR changes the CRUD operations on transactions to use the resource manager strategy
Checklist