-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add components section to improve reusability through referencing within the spec #43
Comments
Signed-off-by: Shai Sachs <shaisachs@gmail.com>
Would recommend to leverage the concept of reference objects |
@frankkilcommins what would be the rationale for a cut-down schema object? We have got ourselves into a right state in OAS with subset-superset-sidesets before. |
I added reference objects just now. Incorporating them into Steps and Parameters was no problem. However, because the |
@shaisachs doesnt the schema object allow |
I think so... But I guess we need to mention that in the spec and provide some examples. |
@MikeRalphson my intention was purely in relation to the explanation text. Optimally we'd just support full JSON Schema 2020-12 here. |
Signed-off-by: Shai Sachs <shaisachs@gmail.com>
Signed-off-by: Shai Sachs <shaisachs@gmail.com>
Signed-off-by: Shai Sachs <shaisachs@gmail.com>
It's currently possible to compose a workflows document and reference other workflow documents, but referencing capabilities of steps and/or reusing step inputs across workflows or steps is limited.
The current scope and referencing of inputs and outputs for steps and workflows is described by the following picture:
Defining workflow inputs, steps and/or step inputs under a global components section (similar to OpenAPI) could bring better reusability through referencing.
Proposal for Components within the Workflows Specification
Components
Holds a set of reusable objects for different aspects of the Workflows Specification. All objects defined within the components object will have no effect on the workflow unless they are explicitly referenced from properties outside the components object.
string
, Schema Object]stepsMap[string
, Step Object]An object to hold a reusable Step Objects.string
, Parameter Object]The text was updated successfully, but these errors were encountered: