We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can generate an Openapi client from a remote location like this:
java -jar openapi-generator-cli-5.2.0.jar generate -i http://some.url.com/openapi.json
However, when I specify a remote URL into the openapi-file setting in the Github action, I get this error:
openapi-file
Error: The spec file is not found: /github/workspace/http://some.url.com/openapi.json
This is my workflow:
generate_client: runs-on: ubuntu-latest needs: - deploy steps: - name: Checkout source code uses: actions/checkout@v2 - name: Generate Java client uses: triaxtec/openapitools-generator-action@v1.0.0 with: generator: java config-file: openapi-generator-java.yml openapi-file: http://some.url.com/openapi.json
This looks like the OpenAPI file location should not be prefixed with /github/workspace/ if it is a remote location.
/github/workspace/
The text was updated successfully, but these errors were encountered:
@carschno remote specs are totally not a feature here yet, but probably should be! There is a separate openapi-url input to https://github.com/triaxtec/openapi-python-client-action which imagine is the same pattern that will eventually be implemented here.
openapi-url
@emann and/or @sweetb do you guys want to support this repo (and the other OpenAPI action repo) here or move to the https://github.com/openapi-generators org?
Sorry, something went wrong.
@dbanty the openapi-generators org is good by me
feat: Add openapi-url parameter for loading remote documents. Closes …
3304658
…#2 (#5)
Successfully merging a pull request may close this issue.
I can generate an Openapi client from a remote location like this:
However, when I specify a remote URL into the
openapi-file
setting in the Github action, I get this error:This is my workflow:
This looks like the OpenAPI file location should not be prefixed with
/github/workspace/
if it is a remote location.The text was updated successfully, but these errors were encountered: