swagger-typescript-api
swagger-typescript-api copied to clipboard
Feature Request : Allow passing "patch" option to "swagger2openapi"
Hello,
I'm facing issues due to wrong information in Swagger of some APIs i'm using. (ex : info.termsOfService must be a URL)
"swagger2openapi" offers an option to fix those errors automatically. -p, --patch fix up small errors in the source definition
It can be interesting to add this as an option in the swagger-typescript-api command too and pass it to swagger2openapi ?
I got this error too
Running into this too, does anyone have a workaround?
If you're using it in nodejs, you can simply:
generateApi({ patch: true })
Unfortunately, I do not see that flag being supported in the command line tool
I downloaded the spec file and then changed the info.termsOfService value to a dummy URL. This worked for me.