Skip to content
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

Remote openapi specs not supported #2

Closed
carschno opened this issue Aug 10, 2021 · 2 comments · Fixed by #5
Closed

Remote openapi specs not supported #2

carschno opened this issue Aug 10, 2021 · 2 comments · Fixed by #5

Comments

@carschno
Copy link

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:

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.

@dbanty
Copy link
Contributor

dbanty commented Aug 22, 2021

@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.

@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?

@sweetb
Copy link

sweetb commented Aug 23, 2021

@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?

@dbanty the openapi-generators org is good by me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants