-
Notifications
You must be signed in to change notification settings - Fork 18
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(ns-workflows-1): Add Step Object #3471
Conversation
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.
Some changes still needed before we can merge. Thank you for patience ;]
@@ -0,0 +1,36 @@ | |||
import stampit from 'stampit'; |
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 be located in workflows-1/step/ParametersVisitor.ts
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.
Thanks - nice spot. Location changed
@@ -0,0 +1,28 @@ | |||
import stampit from 'stampit'; |
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 be located in workflows-1/step/OnFailureVisitor.ts
and the name of visitor should be OnFailureVisitor
.
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.
Thanks - nice spot. Location changed
@@ -0,0 +1,28 @@ | |||
import stampit from 'stampit'; |
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 be located in workflows-1/step/OnSuccessVisitor.ts
and the name of visitor should be OnSuccessVisitor
.
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.
Thanks - nice spot. Location changed
@@ -0,0 +1,28 @@ | |||
import stampit from 'stampit'; |
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 be located in workflows-1/step/SuccessCriteriaVisitor.ts
and the name of visitor should be SuccessCriteriaVisitor
.
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.
Thanks - nice spot.
import StepParametersElement from '../../../../elements/nces/StepParameters'; | ||
import BaseParametersVisitor from '../ParametersVisitor'; | ||
|
||
const ParametersVisitor = stampit(BaseParametersVisitor, { |
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.
No need for doing this. There is only one Parameter Object list inside the spec. The BaseParameterVisitor, should be merged into this file: https://github.com/swagger-api/apidom/pull/3471/files#diff-2c8b689e039b2987e9c7a4e8ae33567fa4edcbb89f72cc2f5d614c57927cf873
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.
Changes applied - thanks
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.
Looks good, I'll follow up with one small change.
'https://petstore3.swagger.io/api/v3/openapi.json#/paths/users/~findbystatus~1{status}/get', | ||
workflowId: 'uniqueWorkflowId', | ||
parameters: [ | ||
{ |
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.
Missing Reference Object test. I'll follow up with a small change.
Refs: #3392
Add Step Object to apidom-ns-workflows-1