openapi-client icon indicating copy to clipboard operation
openapi-client copied to clipboard

Outdir is relative to package.json, rather than the file

Open shankie-codes opened this issue 7 years ago • 2 comments

When I use openapi.genCode(), it outputs the file relative to package.json, rather than the file in which it was called. Is this the expected behaviour? It's a bit different from what most packages do.

Otherwise, great package! Love it!

shankie-codes avatar Jul 17 '17 12:07 shankie-codes

@shankiesan yeah this is a valid point. It will be a breaking change when done so will require a major version bump. I'll squeeze it in next time I'm in the code.

mikestead avatar Sep 01 '17 00:09 mikestead

Yeah fair enough. No major rush – maybe just add it to the docs for the time being?

shankie-codes avatar Sep 01 '17 10:09 shankie-codes