Comments (8)
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.
from slack-api-specs.
👋 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.
from slack-api-specs.
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?
from slack-api-specs.
Wow, I'm glad I came across this issue. I had almost given up completely.
Is there an ETA on getting this fixed?
from slack-api-specs.
@episod thanks! I can confirm that both openapi-generator
and swagger-codegen
successfully generate Scala models and stubs for the Web API.
Is there any chance I can generate Scala models for the Events API as well?
from slack-api-specs.
@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
from slack-api-specs.
@episod Thanks. I'm familiar with the AsyncAPI, unfortunately I couldn't find any Scala code generator for AsyncAPI specs...
from slack-api-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 [Produces(MediaTypeNames.Application.Json)]
on my AppControllerBase
(which inherits ControllerBase
and is inherited by all my controllers) to avoid having to add it on every single controller action. I then keep adding [Consumes(MediaTypeNames.Application.Json)]
and [Produces(typeof(SomeType))]
where needed.
from slack-api-specs.
Related Issues (20)
- Get all the messages with replies HOT 4
- Enhancement request: OpenAPI 3.0 support
- "token" header parameter not actually required
- Incomplete "consumes" definition for chat.postMessage
- Q: Bot vs. User token for reminders methods HOT 2
- Specify token type(s) for API methods in the spec
- Event payload of the `message` event does not have a consistent schema (missing `team` property when message subtype is `file_share`)
- 85 validation errors reported in Swagger Editor HOT 2
- Mark Repo as Unmaintained HOT 1
- `team.billableInfo` is wrong
- Request-URI Too Large for views.publish
- "Objs_user" has it's properties in a list called "items" but this isn't the case for the API - lookupByEmail
- Incorrect schema for calls.add and calls.info
- Required parameters are not marked as required
- Missing email_password_policy_enabled in admin.users.invite parameters
- objs_messages schema is wrong
- objs_file's user_team is wrong
- objs_message's attachment says id should be required but it is not always present
- Spec version is out of date with what the api allows
- Add the ability to slack API to query saved messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-api-specs.