-
Notifications
You must be signed in to change notification settings - Fork 64
openapi-generator cannot process Web API spec #19
Comments
👋 Looking into this, thanks! It may not get resolved to our next spec release, but that shouldn't be too far away now. File comments are now more or less retired from the platform, so as a short term fix you could remove the object reference and any method responses aspects that reference it. |
I'm running into this as well. Considering this repo doesn't get updates too frequently, is an impending update something like weeks away, or more like months? |
Wow, I'm glad I came across this issue. I had almost given up completely. |
Hello! Sorry for the long wait. We've published a new version of the spec to master that should fix most of the issues you're running into with validators and code generators. I was able to generate the skeleton of a Go project using openapi-generator with the newest spec. Let us know how it works for you. |
@episod thanks! I can confirm that both Is there any chance I can generate Scala models for the Events API as well? |
@aSapien great! We do have a similar kind of spec for the Events API, though it's a little out of date and the deep schema coverage is sadly light. It's a format called AsyncAPI and there is some tooling around it for code generation, though it's still in the early days. We should begin working on a more up to date version of this spec later this year. See https://github.com/slackapi/slack-api-specs/tree/master/events-api |
@episod Thanks. I'm familiar with the AsyncAPI, unfortunately I couldn't find any Scala code generator for AsyncAPI specs... |
I hope nobody will mind me putting this here, but since this seems to be top google result when looking into this issue, to save people a bit of time in case they're using .Net WebAPI, this will help you. 🖖🏻 I put |
Description
openapi-generator seems to be unable to process Web API spec. Same goes for swagger-codegen
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
Development environment:
Mac OS X 10.14.3 with Homebrew
openapi-generator 3.3.4
Steps to reproduce:
brew install openapi-generator
openapi-generator generate -i ../slack-api-spec/web-api/slack_web_openapi_v2.json -g go
Expected result:
Client code generated.
Actual result:
The text was updated successfully, but these errors were encountered: