swagger-api / swagger-api/swagger-codegen

[JAVASCRIPT ]Simple js client sdk for browsers

Open
#9,949 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

[JAVASCRIPT FEATURE][ SWAGGERHUB ]
Inorder to use the js client sdk in browser we have to use browserify, it works but the size of the generated file is more than 200kb which is relatively high compared to standard website js files.

Suggest a fix/enhancement

Adding a feature which generates js sdk by using simple js methods like fetch,xhr which can be directly called in the <script> tag would make the generated file to be much smaller(<20kb).

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

The issue names no files, tests, or entry points. Start by locating the JavaScript client generator and its browserify-based templates, then compare the generated bundle with a fetch or XHR-based browser client; done means a directly embeddable SDK below the stated size target.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.