openapi-cli-generator icon indicating copy to clipboard operation
openapi-cli-generator copied to clipboard

Call openapiYmlRegister() instead of openapiRegister()

Open Exchizz opened this issue 5 years ago • 1 comments

Hi, (Really great tool you've written, thanks)

The readme.md says to call openapiRegister() from main.go, but I have to call openapiYmlRegister() instead.

I don't know if this is a bug or what, but since I'm not fluent in go, it took me some time to track down the issue.

I was getting the following error message:

# command-line-arguments
./main.go:16:9: undefined: openapiRegister

Exchizz avatar Jan 21 '20 20:01 Exchizz

This looks like a minor bug related to the file extension stripping. Your workaround of using the name with Yml in it should work for now and I'll see if I can add the .yml extension removal code in the near future. Thanks!

danielgtaylor avatar Jan 23 '20 05:01 danielgtaylor