├── .commitlintrc ├── .editorconfig ├── .eslintrc ├── .github ├── dependabot.yml └── workflows │ ├── check-linked-issues.yml │ ├── ci.yml │ ├── notify-release.yml │ └── release.yml ├── .gitignore ├── .husky ├── commit-msg ├── pre-commit └── pre-push ├── .nvmrc ├── .prettierrc ├── README.md ├── example ├── json-schema-to-typescript-config.json ├── openapi.yml └── output │ ├── json │ └── components.schemas │ │ ├── Address.json │ │ ├── ApiResponse.json │ │ ├── Category.json │ │ ├── Customer.json │ │ ├── DateExample.json │ │ ├── FooBARBaz.json │ │ ├── Order.json │ │ ├── Pet.json │ │ ├── Tag.json │ │ └── User.json │ ├── ts │ ├── Address.ts │ ├── ApiResponse.ts │ ├── Category.ts │ ├── Customer.ts │ ├── DateExample.ts │ ├── FooBARBaz.ts │ ├── Order.ts │ ├── Pet.ts │ ├── Tag.ts │ └── User.ts │ └── types │ ├── Address.d.ts │ ├── ApiResponse.d.ts │ ├── Category.d.ts │ ├── Customer.d.ts │ ├── DateExample.d.ts │ ├── FooBARBaz.d.ts │ ├── Order.d.ts │ ├── Pet.d.ts │ ├── Tag.d.ts │ └── User.d.ts ├── index.ts ├── package.json ├── scripts └── generate-toc.mjs ├── src ├── cli.ts ├── commands │ ├── json2ts.ts │ ├── oas2json.ts │ ├── oas2ts.ts │ └── oas2tson.ts ├── types │ ├── Json2TsOptions.d.ts │ ├── Oas2Tson.d.ts │ └── SchemasMetaData.d.ts └── utils │ ├── do-not-edit-text.ts │ ├── openapi-schema-to-json-schema-wrapper.ts │ ├── paths.ts │ └── read-config-file.ts ├── test ├── fixtures │ ├── openapi.yml │ └── schemas │ │ ├── Address.json │ │ ├── ApiResponse.json │ │ ├── Category.json │ │ ├── Customer.json │ │ ├── DateExample.json │ │ ├── Order.json │ │ ├── Pet.json │ │ ├── Tag.json │ │ └── User.json ├── json2ts.test.ts ├── oas2json.test.ts ├── oas2ts.test.ts └── oas2tson.test.ts ├── tsconfig.json └── tsup.config.ts /.commitlintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.commitlintrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/check-linked-issues.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.github/workflows/check-linked-issues.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/notify-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.github/workflows/notify-release.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | 2 | npm run generate-toc 3 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* 2 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/.prettierrc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/README.md -------------------------------------------------------------------------------- /example/json-schema-to-typescript-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/json-schema-to-typescript-config.json -------------------------------------------------------------------------------- /example/openapi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/openapi.yml -------------------------------------------------------------------------------- /example/output/json/components.schemas/Address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Address.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/ApiResponse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/ApiResponse.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/Category.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Category.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/Customer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Customer.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/DateExample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/DateExample.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/FooBARBaz.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/FooBARBaz.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/Order.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Order.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/Pet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Pet.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/Tag.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/Tag.json -------------------------------------------------------------------------------- /example/output/json/components.schemas/User.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/json/components.schemas/User.json -------------------------------------------------------------------------------- /example/output/ts/Address.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Address.ts -------------------------------------------------------------------------------- /example/output/ts/ApiResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/ApiResponse.ts -------------------------------------------------------------------------------- /example/output/ts/Category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Category.ts -------------------------------------------------------------------------------- /example/output/ts/Customer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Customer.ts -------------------------------------------------------------------------------- /example/output/ts/DateExample.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/DateExample.ts -------------------------------------------------------------------------------- /example/output/ts/FooBARBaz.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/FooBARBaz.ts -------------------------------------------------------------------------------- /example/output/ts/Order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Order.ts -------------------------------------------------------------------------------- /example/output/ts/Pet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Pet.ts -------------------------------------------------------------------------------- /example/output/ts/Tag.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/Tag.ts -------------------------------------------------------------------------------- /example/output/ts/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/ts/User.ts -------------------------------------------------------------------------------- /example/output/types/Address.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Address.d.ts -------------------------------------------------------------------------------- /example/output/types/ApiResponse.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/ApiResponse.d.ts -------------------------------------------------------------------------------- /example/output/types/Category.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Category.d.ts -------------------------------------------------------------------------------- /example/output/types/Customer.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Customer.d.ts -------------------------------------------------------------------------------- /example/output/types/DateExample.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/DateExample.d.ts -------------------------------------------------------------------------------- /example/output/types/FooBARBaz.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/FooBARBaz.d.ts -------------------------------------------------------------------------------- /example/output/types/Order.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Order.d.ts -------------------------------------------------------------------------------- /example/output/types/Pet.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Pet.d.ts -------------------------------------------------------------------------------- /example/output/types/Tag.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/Tag.d.ts -------------------------------------------------------------------------------- /example/output/types/User.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/example/output/types/User.d.ts -------------------------------------------------------------------------------- /index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/index.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/package.json -------------------------------------------------------------------------------- /scripts/generate-toc.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/scripts/generate-toc.mjs -------------------------------------------------------------------------------- /src/cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/cli.ts -------------------------------------------------------------------------------- /src/commands/json2ts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/commands/json2ts.ts -------------------------------------------------------------------------------- /src/commands/oas2json.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/commands/oas2json.ts -------------------------------------------------------------------------------- /src/commands/oas2ts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/commands/oas2ts.ts -------------------------------------------------------------------------------- /src/commands/oas2tson.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/commands/oas2tson.ts -------------------------------------------------------------------------------- /src/types/Json2TsOptions.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/types/Json2TsOptions.d.ts -------------------------------------------------------------------------------- /src/types/Oas2Tson.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/types/Oas2Tson.d.ts -------------------------------------------------------------------------------- /src/types/SchemasMetaData.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/types/SchemasMetaData.d.ts -------------------------------------------------------------------------------- /src/utils/do-not-edit-text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/utils/do-not-edit-text.ts -------------------------------------------------------------------------------- /src/utils/openapi-schema-to-json-schema-wrapper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/utils/openapi-schema-to-json-schema-wrapper.ts -------------------------------------------------------------------------------- /src/utils/paths.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/utils/paths.ts -------------------------------------------------------------------------------- /src/utils/read-config-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/src/utils/read-config-file.ts -------------------------------------------------------------------------------- /test/fixtures/openapi.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/openapi.yml -------------------------------------------------------------------------------- /test/fixtures/schemas/Address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Address.json -------------------------------------------------------------------------------- /test/fixtures/schemas/ApiResponse.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/ApiResponse.json -------------------------------------------------------------------------------- /test/fixtures/schemas/Category.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Category.json -------------------------------------------------------------------------------- /test/fixtures/schemas/Customer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Customer.json -------------------------------------------------------------------------------- /test/fixtures/schemas/DateExample.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/DateExample.json -------------------------------------------------------------------------------- /test/fixtures/schemas/Order.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Order.json -------------------------------------------------------------------------------- /test/fixtures/schemas/Pet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Pet.json -------------------------------------------------------------------------------- /test/fixtures/schemas/Tag.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/Tag.json -------------------------------------------------------------------------------- /test/fixtures/schemas/User.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/fixtures/schemas/User.json -------------------------------------------------------------------------------- /test/json2ts.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/json2ts.test.ts -------------------------------------------------------------------------------- /test/oas2json.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/oas2json.test.ts -------------------------------------------------------------------------------- /test/oas2ts.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/oas2ts.test.ts -------------------------------------------------------------------------------- /test/oas2tson.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/test/oas2tson.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsup.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/openapi-transformer-toolkit/HEAD/tsup.config.ts --------------------------------------------------------------------------------