├── .editorconfig ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ ├── continuous-integration.yml │ └── merge-dependencies.yml ├── .gitignore ├── .huskyrc.json ├── .lintstagedrc.json ├── .nycrc.json ├── .prettierignore ├── .prettierrc.json ├── .yarnrc ├── CHANGELOG.md ├── README.md ├── jasmine.json ├── logo.png ├── logo.svg ├── package.json ├── src ├── Swaxios.test.ts ├── Swaxios.ts ├── cli.ts ├── generators │ ├── APIClientGenerator.test.ts │ ├── APIClientGenerator.ts │ ├── IndexFileGenerator.ts │ ├── InterfaceGenerator.ts │ ├── MethodGenerator.test.ts │ ├── MethodGenerator.ts │ ├── ResourceGenerator.test.ts │ ├── ResourceGenerator.ts │ ├── TemplateGenerator.ts │ └── index.ts ├── index.ts ├── templates │ ├── APIClient.hbs │ ├── Interface.hbs │ ├── Resource.hbs │ └── index.hbs ├── test │ ├── fixtures │ │ ├── lambot-server.json │ │ ├── wire-ets.json │ │ └── wire-sso.json │ └── snapshots │ │ ├── 1-query-param-description.json │ │ ├── 1-query-param-description.ts.fixture │ │ ├── 10-openapi-3-header.json │ │ ├── 2-deep-nested-endpoints.json │ │ ├── 2-deep-nested-endpoints.ts.fixture │ │ ├── 3-delete-by-id-number.json │ │ ├── 3-delete-by-id-number.ts.fixture │ │ ├── 4-delete-by-id-number-with-response.json │ │ ├── 4-delete-by-id-number-with-response.ts.fixture │ │ ├── 5-query-param-required.json │ │ ├── 5-query-param-required.ts.fixture │ │ ├── 6-operationId.json │ │ ├── 6-operationId.ts.fixture │ │ ├── 7-bearer-auth.json │ │ ├── 7-bearer-auth.ts.fixture │ │ ├── 8-definitions-CreateAccountRequest.ts.fixture │ │ ├── 8-definitions-CreateAccountResponse.ts.fixture │ │ ├── 8-definitions.json │ │ ├── 9-special-characters.json │ │ └── 9-special-characters.ts.fixture ├── util │ ├── FileUtil.test.ts │ ├── FileUtil.ts │ ├── StringUtil.test.ts │ └── StringUtil.ts └── validator │ └── SwaggerValidator.ts ├── tsconfig.json ├── tslint.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/continuous-integration.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.github/workflows/continuous-integration.yml -------------------------------------------------------------------------------- /.github/workflows/merge-dependencies.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.github/workflows/merge-dependencies.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.gitignore -------------------------------------------------------------------------------- /.huskyrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.huskyrc.json -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.nycrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.nycrc.json -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.yarnrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/.yarnrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/README.md -------------------------------------------------------------------------------- /jasmine.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/jasmine.json -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/logo.png -------------------------------------------------------------------------------- /logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/logo.svg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/package.json -------------------------------------------------------------------------------- /src/Swaxios.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/Swaxios.test.ts -------------------------------------------------------------------------------- /src/Swaxios.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/Swaxios.ts -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/generators/APIClientGenerator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/APIClientGenerator.test.ts -------------------------------------------------------------------------------- /src/generators/APIClientGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/APIClientGenerator.ts -------------------------------------------------------------------------------- /src/generators/IndexFileGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/IndexFileGenerator.ts -------------------------------------------------------------------------------- /src/generators/InterfaceGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/InterfaceGenerator.ts -------------------------------------------------------------------------------- /src/generators/MethodGenerator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/MethodGenerator.test.ts -------------------------------------------------------------------------------- /src/generators/MethodGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/MethodGenerator.ts -------------------------------------------------------------------------------- /src/generators/ResourceGenerator.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/ResourceGenerator.test.ts -------------------------------------------------------------------------------- /src/generators/ResourceGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/ResourceGenerator.ts -------------------------------------------------------------------------------- /src/generators/TemplateGenerator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/TemplateGenerator.ts -------------------------------------------------------------------------------- /src/generators/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/generators/index.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/templates/APIClient.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/templates/APIClient.hbs -------------------------------------------------------------------------------- /src/templates/Interface.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/templates/Interface.hbs -------------------------------------------------------------------------------- /src/templates/Resource.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/templates/Resource.hbs -------------------------------------------------------------------------------- /src/templates/index.hbs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/templates/index.hbs -------------------------------------------------------------------------------- /src/test/fixtures/lambot-server.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/fixtures/lambot-server.json -------------------------------------------------------------------------------- /src/test/fixtures/wire-ets.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/fixtures/wire-ets.json -------------------------------------------------------------------------------- /src/test/fixtures/wire-sso.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/fixtures/wire-sso.json -------------------------------------------------------------------------------- /src/test/snapshots/1-query-param-description.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/1-query-param-description.json -------------------------------------------------------------------------------- /src/test/snapshots/1-query-param-description.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/1-query-param-description.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/10-openapi-3-header.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/10-openapi-3-header.json -------------------------------------------------------------------------------- /src/test/snapshots/2-deep-nested-endpoints.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/2-deep-nested-endpoints.json -------------------------------------------------------------------------------- /src/test/snapshots/2-deep-nested-endpoints.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/2-deep-nested-endpoints.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/3-delete-by-id-number.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/3-delete-by-id-number.json -------------------------------------------------------------------------------- /src/test/snapshots/3-delete-by-id-number.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/3-delete-by-id-number.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/4-delete-by-id-number-with-response.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/4-delete-by-id-number-with-response.json -------------------------------------------------------------------------------- /src/test/snapshots/4-delete-by-id-number-with-response.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/4-delete-by-id-number-with-response.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/5-query-param-required.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/5-query-param-required.json -------------------------------------------------------------------------------- /src/test/snapshots/5-query-param-required.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/5-query-param-required.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/6-operationId.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/6-operationId.json -------------------------------------------------------------------------------- /src/test/snapshots/6-operationId.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/6-operationId.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/7-bearer-auth.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/7-bearer-auth.json -------------------------------------------------------------------------------- /src/test/snapshots/7-bearer-auth.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/7-bearer-auth.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/8-definitions-CreateAccountRequest.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/8-definitions-CreateAccountRequest.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/8-definitions-CreateAccountResponse.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/8-definitions-CreateAccountResponse.ts.fixture -------------------------------------------------------------------------------- /src/test/snapshots/8-definitions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/8-definitions.json -------------------------------------------------------------------------------- /src/test/snapshots/9-special-characters.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/9-special-characters.json -------------------------------------------------------------------------------- /src/test/snapshots/9-special-characters.ts.fixture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/test/snapshots/9-special-characters.ts.fixture -------------------------------------------------------------------------------- /src/util/FileUtil.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/util/FileUtil.test.ts -------------------------------------------------------------------------------- /src/util/FileUtil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/util/FileUtil.ts -------------------------------------------------------------------------------- /src/util/StringUtil.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/util/StringUtil.test.ts -------------------------------------------------------------------------------- /src/util/StringUtil.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/util/StringUtil.ts -------------------------------------------------------------------------------- /src/validator/SwaggerValidator.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/src/validator/SwaggerValidator.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/tslint.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/welovecoding/swaxios/HEAD/yarn.lock --------------------------------------------------------------------------------