-
Notifications
You must be signed in to change notification settings - Fork 531
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
Action to validate a definition using parser cli #1774
Conversation
.github/actions/action.yml
Outdated
run: java -version | ||
shell: bash | ||
- name: Build Java | ||
if: steps.java-version == null |
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.
we need at least java 8, this should be checked
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.
Are the json/yaml options available in the action?
.github/actions/action.yml
Outdated
@@ -0,0 +1,34 @@ | |||
name: 'Swagger Parser CLI' | |||
description: 'Uses swagger parser CLI to allow validation of a definition' |
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.
change to "Parses, validates, dereferences an OpenAPI definition"
.github/actions/action.yml
Outdated
@@ -0,0 +1,34 @@ | |||
name: 'Swagger Parser CLI' |
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.
change to "Swagger Parser"
.github/actions/action.yml
Outdated
description: 'Uses swagger parser CLI to allow validation of a definition' | ||
inputs: | ||
inputSpec: | ||
description: 'file of the openapi definition' |
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.
path to OpenAPI definition file
.github/actions/action.yml
Outdated
description: 'parser options' | ||
required: false | ||
logsPath: | ||
description: 'file of the logs messages or errors' |
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.
path to validation result file
.github/actions/action.yml
Outdated
description: 'file of the logs messages or errors' | ||
required: true | ||
parserSpecPath: | ||
description: 'path where a file can be found with parsed definition' |
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.
output path of the serialized parsed definition
3009f93
to
5b1028d
Compare
Action to validate a definition using parser cli