├── .github ├── dependabot.yml └── workflows │ └── tests.yaml ├── .gitignore ├── LICENSE ├── README.md ├── bin └── run.js ├── eslint.config.js ├── package.json ├── resources └── header.js ├── src ├── decs.d.ts ├── generator.test.ts ├── generator.ts ├── index.ts ├── intermediate-model.ts ├── intermediate.ts ├── oas31-types.ts ├── parse.ts ├── sanitize.test.ts ├── sanitize.ts ├── spec-utils.ts └── utils.ts ├── test-e2e ├── __snapshots__ │ ├── petstore-swagger.snap │ └── petstore.snap ├── petstore-swagger.test.ts ├── petstore.test.ts ├── query-params.test.ts └── test-utils.ts ├── test-resources ├── petstore-swagger.yaml ├── petstore.yaml └── query-params.yaml └── tsconfig.json /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/tests.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/.github/workflows/tests.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/README.md -------------------------------------------------------------------------------- /bin/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | import '../dist/index.js'; -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/eslint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/package.json -------------------------------------------------------------------------------- /resources/header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/resources/header.js -------------------------------------------------------------------------------- /src/decs.d.ts: -------------------------------------------------------------------------------- 1 | declare module "swagger2openapi" -------------------------------------------------------------------------------- /src/generator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/generator.test.ts -------------------------------------------------------------------------------- /src/generator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/generator.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/intermediate-model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/intermediate-model.ts -------------------------------------------------------------------------------- /src/intermediate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/intermediate.ts -------------------------------------------------------------------------------- /src/oas31-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/oas31-types.ts -------------------------------------------------------------------------------- /src/parse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/parse.ts -------------------------------------------------------------------------------- /src/sanitize.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/sanitize.test.ts -------------------------------------------------------------------------------- /src/sanitize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/sanitize.ts -------------------------------------------------------------------------------- /src/spec-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/spec-utils.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/src/utils.ts -------------------------------------------------------------------------------- /test-e2e/__snapshots__/petstore-swagger.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/__snapshots__/petstore-swagger.snap -------------------------------------------------------------------------------- /test-e2e/__snapshots__/petstore.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/__snapshots__/petstore.snap -------------------------------------------------------------------------------- /test-e2e/petstore-swagger.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/petstore-swagger.test.ts -------------------------------------------------------------------------------- /test-e2e/petstore.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/petstore.test.ts -------------------------------------------------------------------------------- /test-e2e/query-params.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/query-params.test.ts -------------------------------------------------------------------------------- /test-e2e/test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-e2e/test-utils.ts -------------------------------------------------------------------------------- /test-resources/petstore-swagger.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-resources/petstore-swagger.yaml -------------------------------------------------------------------------------- /test-resources/petstore.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-resources/petstore.yaml -------------------------------------------------------------------------------- /test-resources/query-params.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/test-resources/query-params.yaml -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bcoughlan/openapi-commander/HEAD/tsconfig.json --------------------------------------------------------------------------------