Open phrohdoh opened 5 years ago
Alright I bit the bullet and set go up locally and was able to reproduce this without Docker being involved at all.
This is a great question, I'll try to have a look when I get a chance and will need to work on making the output of the CLI a bit friendlier. There is very little generator error handling at this point!
You can pass this error if you run the cmd openapi-cli-generator generate ynab.openapi.yaml
by stripping the dot... `openapi-cli-generator generate ynab_openapi_yaml.
I am attempting to generate a CLI for YNAB's API (spec) via Docker (because I really do not want to setup then tear down a go env for this single use-case).
This isn't straightforward as the YNAB API spec is OpenAPI v2 so I converted it to v3 with this tool (then validated the generated spec with this tool).
I uploaded the resulting v3 YAML as a gist.
I then wrote this, potentially bogus,
Dockerfile
:When I run the following from the directory containing my
Dockerfile
:I get the following output:
With the relevant portion being:
Am I attempting to use this project incorrectly or is the generated v3 YAML doc invalid?
Any help/input would be greatly appreciated!