{"id":46208904,"url":"https://github.com/devexperts/swagger-codegen-ts","last_synced_at":"2026-03-03T08:50:32.533Z","repository":{"id":33278350,"uuid":"143007364","full_name":"devexperts/swagger-codegen-ts","owner":"devexperts","description":"Typesafe Swagger API generator for TypeScript","archived":false,"fork":false,"pushed_at":"2024-01-10T10:54:52.000Z","size":1626,"stargazers_count":81,"open_issues_count":30,"forks_count":17,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-12-15T00:31:09.612Z","etag":null,"topics":["codegen","fp-ts","io-ts","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devexperts.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T11:50:36.000Z","updated_at":"2025-04-29T14:40:31.000Z","dependencies_parsed_at":"2024-06-21T07:25:44.289Z","dependency_job_id":null,"html_url":"https://github.com/devexperts/swagger-codegen-ts","commit_stats":{"total_commits":279,"total_committers":24,"mean_commits":11.625,"dds":0.6559139784946236,"last_synced_commit":"fcfce49a49437631dc7ef46ca59210c15ecec146"},"previous_names":["devex-web-frontend/swagger-codegen-ts"],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/devexperts/swagger-codegen-ts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexperts%2Fswagger-codegen-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexperts%2Fswagger-codegen-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexperts%2Fswagger-codegen-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexperts%2Fswagger-codegen-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devexperts","download_url":"https://codeload.github.com/devexperts/swagger-codegen-ts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devexperts%2Fswagger-codegen-ts/sbom","scorecard":{"id":337389,"data":{"date":"2025-08-11","repo":{"name":"github.com/devexperts/swagger-codegen-ts","commit":"82158bc56894a75b660f8fd8822d0a94a3c96ddd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":3,"reason":"Found 4/12 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/merge-checks.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/merge-checks.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/devexperts/swagger-codegen-ts/merge-checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/merge-checks.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/devexperts/swagger-codegen-ts/merge-checks.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/devexperts/swagger-codegen-ts/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/devexperts/swagger-codegen-ts/npm-publish.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Mozilla Public License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/2.0/serializers/__tests__/schema-object.spec.ts:1","Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/3.0/serializers/__tests__/schema-object.spec.ts:11","Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/common/data/__tests__/serialized-type.spec.ts:1","Info: TypeScriptPropertyBasedTesting integration found: src/utils/__tests__/ref.spec.ts:2","Info: TypeScriptPropertyBasedTesting integration found: src/utils/fast-check.ts:1","Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/2.0/serializers/__tests__/schema-object.spec.ts:1","Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/3.0/serializers/__tests__/schema-object.spec.ts:11","Info: TypeScriptPropertyBasedTesting integration found: src/language/typescript/common/data/__tests__/serialized-type.spec.ts:1","Info: TypeScriptPropertyBasedTesting integration found: src/utils/__tests__/ref.spec.ts:2","Info: TypeScriptPropertyBasedTesting integration found: src/utils/fast-check.ts:1"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T05:02:27.442Z","repository_id":33278350,"created_at":"2025-08-18T05:02:27.442Z","updated_at":"2025-08-18T05:02:27.442Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30038542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codegen","fp-ts","io-ts","typescript"],"created_at":"2026-03-03T08:50:31.891Z","updated_at":"2026-03-03T08:50:32.528Z","avatar_url":"https://github.com/devexperts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/devexperts/swagger-codegen-ts.svg?branch=master)](https://travis-ci.org/devexperts/swagger-codegen-ts)\n\n# Typesafe OpenAPI generator for TypeScript\n\n## Features\n* Generates client code from **OpenAPI 3.0, 2.0** (aka Swagger) and **AsyncAPI** specs\n* **Pluggable HTTP clients:** can use `fetch`, `Axios` or any other library\n* **Flexible response types:** works with Promises and reactive streams like RxJS\n* **Runtime type checks:** validates server responses against the spec\n* Written in **pure TypeScript** using [`fp-ts`](https://github.com/gcanti/fp-ts) and [`io-ts`](https://github.com/gcanti/io-ts) libraries\n\n## Demo code\n\n\u003e The examples below refer to the [Pet Store OpenAPI 3.0 schema](https://petstore3.swagger.io/).\n\nAfter running the codegen, interacting with a REST API may be as simple as this:\n\n```typescript\nimport { petController as createPetController } from \"./src/generated/petstore.json/paths/PetController\";\nimport { Pet } from \"./src/generated/petstore.json/components/schemas/Pet\";\n\n// Creating a controller, see the \"HTTP Clients\" wiki page for more details\nconst petController = createPetController({ httpClient: fetchHttpClient });\n\n// The returned object is guaranteed to be a valid `Pet`\nconst createdPet: Promise\u003cPet\u003e = petController.addPet({\n  body: {\n    // The parameters are statically typed, IntelliSense works, too\n    name: \"Spotty\",\n    photoUrls: [],\n  },\n});\n```\n\nMore usage scenarios are supported - check the [usage page](./docs/usage/generated-code.md) for more detail.\n\n## Installation\n\n1. Make sure the peer dependencies are installed, then install the codegen itself:\n   ```\n   yarn add typescript fp-ts io-ts io-ts-types\n   yarn add -D @devexperts/swagger-codegen-ts\n   ```\n\n2. Create a console script that would invoke the `generate` function, passing the options such as path to the schema file and the output directory.\nSee the [Generators](docs/usage/api.md) page for the API reference, and [examples/generate](examples/generate) for sample scripts.\n\n3. In most cases, you might want to include the code generation step into the build and local launch scripts. Example:\n   ```diff\n   /* package.json */\n\n     \"scripts\": {\n   +   \"generate:api\": \"ts-node scripts/generate-api.ts\",\n   -   \"start\": \"react-scripts start\",\n   +   \"start\": \"yarn generate:api \u0026\u0026 react-scripts start\",\n   -   \"build\": \"react-scripts build\"\n   +   \"build\": \"yarn generate:api \u0026\u0026 react-scripts build\"\n     }\n   ```\n\n## Contributing\n\n* Feel free to file bugs and feature requests in [GitHub issues](https://github.com/devexperts/swagger-codegen-ts/issues/new).\n* Pull requests are welcome - please use [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/).\n\nPlease read the [Contributors Guide](./docs/development/contributors-guide.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevexperts%2Fswagger-codegen-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevexperts%2Fswagger-codegen-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevexperts%2Fswagger-codegen-ts/lists"}