Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !2355

[Elixir] Deserialize responses based on status code

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/cyon/elixir/response-decoder into master Mar 10, 2019
  • Overview 0
  • Commits 15
  • Pipelines 0
  • Changes 70

Created by: mrmstn

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh, ./bin/security/{LANG}-petstore.sh and ./bin/openapi3/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language. cc: @wing328

Description of the PR

First of all, sorry if I might made some chaos. I branched this PR from the great work of @yknx4. I'm hoping the change history will look a little bit better after PR https://github.com/OpenAPITools/openapi-generator/pull/2326 was merged.

With this PR the generated elixir client will be able deserialize a response based on the given statuscodes including the ability to match on a default response in case none of the give codes matches (https://swagger.io/docs/specification/describing-responses/)

This PR stops descriptions and doc parts from beeing escaped by mustache and will pin poison to ~> 3.0.0 since poison 4.0.0 doesn't seems to work right now (I haven't investigated anything)

based on https://github.com/OpenAPITools/openapi-generator/pull/2326 closes https://github.com/OpenAPITools/openapi-generator/issues/2334

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/cyon/elixir/response-decoder