swagger-api / swagger-api/swagger-codegen

[JAVASCRIPT] Only generate api without the models

Open
#3,996 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: JavaScript/Node.js General: Suggestion
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I'm using a generated swagger client in a reactjs project where we use Immutable, I would like to get the data as a json map instead of models. Is it only me that have a need for something like this?

An alternative would be to implement a toJSON() that would return the object representation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the JavaScript generator templates that produce the API client and models. Compare the two requested outcomes—generating the API without models or adding a toJSON() representation—and determine which behavior fits the existing generated client. Done means the selected behavior works for a generated client and its output is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, openapi, react
Domain
api, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.