Giter Club home page Giter Club logo

Comments (6)

czechboy0 avatar czechboy0 commented on July 17, 2024

Added the design label, as this task will require a proposal, as it introduces a new paradigm - the Accept header hinting at the expected response Content-Type, where there isn't a single obvious solution, so should be discussed first.

from swift-openapi-generator.

czechboy0 avatar czechboy0 commented on July 17, 2024

It's also possible we could split this into two issues:

  1. supporting multiple response body content types
  2. providing the Accept header to the server to help it make a decision about which response content type to use

In this case, the first one would be straightforward, and not require a proposal - just like multiple request content types.

The second one would require a proposal.

from swift-openapi-generator.

simonjbeaumont avatar simonjbeaumont commented on July 17, 2024

providing the Accept header to the server to help it make a decision about which response content type to use

IMO this has to be part of the solution as it's the conventional way of telling the server what you want when it can provide different response types.

from swift-openapi-generator.

czechboy0 avatar czechboy0 commented on July 17, 2024

For sure, was just trying to break out the work that's non-controversial (supporting multiple content types) from the thing that needs design (how we provide the value for the Accept header to the adopter on the server). Not saying we would make a release with a partial implementation, just that these things can land in separate PRs, for easier review.

from swift-openapi-generator.

czechboy0 avatar czechboy0 commented on July 17, 2024

Landed in main under the multipleContentTypes feature flag.

from swift-openapi-generator.

czechboy0 avatar czechboy0 commented on July 17, 2024

Now released in 0.1.7 under the multipleContentTypes feature flag.

from swift-openapi-generator.

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.