├── .eslintrc.js ├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── bin.ts ├── consts.ts ├── index.ts ├── lib │ ├── convert.ts │ ├── converters │ │ ├── parameter.ts │ │ └── schema.ts │ ├── errors │ │ ├── invalid-input-error.ts │ │ └── invalid-type-error.ts │ └── utils │ │ └── isObject.ts └── openapi-schema-types.ts ├── test ├── clone_schema.test.ts ├── combination_keywords.test.ts ├── combiners.test.ts ├── complex_schemas.test.ts ├── converters.test.ts ├── definition_keyworks.test.ts ├── helpers.ts ├── invalid_types.test.ts ├── items.test.ts ├── nullable.test.ts ├── numeric_types.test.ts ├── parameter.test.ts ├── pattern_properties.test.ts ├── properties.test.ts ├── readonly_writeonly.test.ts ├── schemas │ ├── schema-1-expected.json │ ├── schema-1.json │ └── schema-2-invalid-type.json ├── string_types.test.ts ├── transform.test.ts ├── tsconfig.json └── unsupported_properties.test.ts ├── tsconfig.json ├── vite.config.ts └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/package.json -------------------------------------------------------------------------------- /src/bin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/bin.ts -------------------------------------------------------------------------------- /src/consts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/consts.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lib/convert.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/convert.ts -------------------------------------------------------------------------------- /src/lib/converters/parameter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/converters/parameter.ts -------------------------------------------------------------------------------- /src/lib/converters/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/converters/schema.ts -------------------------------------------------------------------------------- /src/lib/errors/invalid-input-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/errors/invalid-input-error.ts -------------------------------------------------------------------------------- /src/lib/errors/invalid-type-error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/errors/invalid-type-error.ts -------------------------------------------------------------------------------- /src/lib/utils/isObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/lib/utils/isObject.ts -------------------------------------------------------------------------------- /src/openapi-schema-types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/src/openapi-schema-types.ts -------------------------------------------------------------------------------- /test/clone_schema.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/clone_schema.test.ts -------------------------------------------------------------------------------- /test/combination_keywords.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/combination_keywords.test.ts -------------------------------------------------------------------------------- /test/combiners.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/combiners.test.ts -------------------------------------------------------------------------------- /test/complex_schemas.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/complex_schemas.test.ts -------------------------------------------------------------------------------- /test/converters.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/converters.test.ts -------------------------------------------------------------------------------- /test/definition_keyworks.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/definition_keyworks.test.ts -------------------------------------------------------------------------------- /test/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/helpers.ts -------------------------------------------------------------------------------- /test/invalid_types.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/invalid_types.test.ts -------------------------------------------------------------------------------- /test/items.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/items.test.ts -------------------------------------------------------------------------------- /test/nullable.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/nullable.test.ts -------------------------------------------------------------------------------- /test/numeric_types.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/numeric_types.test.ts -------------------------------------------------------------------------------- /test/parameter.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/parameter.test.ts -------------------------------------------------------------------------------- /test/pattern_properties.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/pattern_properties.test.ts -------------------------------------------------------------------------------- /test/properties.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/properties.test.ts -------------------------------------------------------------------------------- /test/readonly_writeonly.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/readonly_writeonly.test.ts -------------------------------------------------------------------------------- /test/schemas/schema-1-expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/schemas/schema-1-expected.json -------------------------------------------------------------------------------- /test/schemas/schema-1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/schemas/schema-1.json -------------------------------------------------------------------------------- /test/schemas/schema-2-invalid-type.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/schemas/schema-2-invalid-type.json -------------------------------------------------------------------------------- /test/string_types.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/string_types.test.ts -------------------------------------------------------------------------------- /test/transform.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/transform.test.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /test/unsupported_properties.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/test/unsupported_properties.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/vite.config.ts -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openapi-contrib/openapi-schema-to-json-schema/HEAD/yarn.lock --------------------------------------------------------------------------------