Coder Social home page Coder Social logo

Comments (8)

episod avatar episod commented on August 28, 2024 1

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.

episod avatar episod commented on August 28, 2024

👋 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.

losttime avatar losttime commented on August 28, 2024

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.

aSapien avatar aSapien commented on August 28, 2024

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.

aSapien avatar aSapien commented on August 28, 2024

@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.

episod avatar episod commented on August 28, 2024

@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.

aSapien avatar aSapien commented on August 28, 2024

@episod Thanks. I'm familiar with the AsyncAPI, unfortunately I couldn't find any Scala code generator for AsyncAPI specs...

from slack-api-specs.

tihomir-kit avatar tihomir-kit commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.