├── .github ├── pull_request_template.md └── workflows │ └── tests.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .npmignore ├── LICENSE ├── README.md ├── __tests__ ├── __snapshots__ │ └── index.test.ts.snap ├── index.test.ts ├── json-serializer.js └── schemas │ ├── eu-document.json │ ├── rebilly-kyc.json │ └── rebilly-transaction.json ├── jest.config.js ├── package.json ├── src ├── __tests__ │ ├── js-utils.test.ts │ └── utils.test.ts ├── combine.ts ├── format.ts ├── index.ts ├── js-utils.ts ├── types.ts └── utils.ts ├── tsconfig.json └── tsconfig.test.json /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/tests.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/.github/workflows/tests.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | coverage -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | * 2 | !lib/* 3 | !README.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/__snapshots__/index.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/__snapshots__/index.test.ts.snap -------------------------------------------------------------------------------- /__tests__/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/index.test.ts -------------------------------------------------------------------------------- /__tests__/json-serializer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/json-serializer.js -------------------------------------------------------------------------------- /__tests__/schemas/eu-document.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/schemas/eu-document.json -------------------------------------------------------------------------------- /__tests__/schemas/rebilly-kyc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/schemas/rebilly-kyc.json -------------------------------------------------------------------------------- /__tests__/schemas/rebilly-transaction.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/__tests__/schemas/rebilly-transaction.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/js-utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/__tests__/js-utils.test.ts -------------------------------------------------------------------------------- /src/__tests__/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/__tests__/utils.test.ts -------------------------------------------------------------------------------- /src/combine.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/combine.ts -------------------------------------------------------------------------------- /src/format.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/format.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/js-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/js-utils.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Redocly/json-to-json-schema/HEAD/tsconfig.test.json --------------------------------------------------------------------------------