├── .eslintrc.json ├── .github ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ └── main.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── .prettierignore ├── .prettierrc.json ├── .project ├── CHANGELOG.md ├── LICENSE ├── README.md ├── package.json ├── src ├── idUtils.js ├── idUtils.test.js ├── index.js └── index.test.js └── test └── integration ├── samples.js ├── samples ├── array │ ├── expected.json │ └── input.json ├── array_array │ ├── expected.json │ └── input.json ├── array_array_complex │ ├── expected.json │ └── input.json ├── array_boolean_items │ ├── expected.json │ └── input.json ├── array_complex │ ├── expected.json │ └── input.json ├── array_default │ ├── expected.json │ └── input.json ├── array_enum │ ├── expected.json │ └── input.json ├── array_multiple_types │ ├── expected.json │ └── input.json ├── array_no_items │ ├── expected.json │ └── input.json ├── array_optional │ ├── expected.json │ └── input.json ├── array_required │ ├── expected.json │ └── input.json ├── complex │ ├── expected.json │ └── input.json ├── default │ ├── expected.json │ └── input.json ├── enum │ ├── expected.json │ └── input.json ├── id │ ├── expected.json │ └── input.json ├── id_draft_6 │ ├── expected.json │ └── input.json ├── integer │ ├── expected.json │ └── input.json ├── invalid_enum │ ├── expected.json │ └── input.json ├── main │ ├── expected.json │ └── input.json ├── multiple_types │ ├── expected.json │ └── input.json ├── no_id │ ├── expected.json │ └── input.json ├── no_namespace │ ├── expected.json │ └── input.json ├── omit_properties │ ├── expected.json │ └── input.json ├── optional │ ├── expected.json │ └── input.json ├── optional_array │ ├── expected.json │ └── input.json ├── optional_complex │ ├── expected.json │ └── input.json ├── optional_enum │ ├── expected.json │ └── input.json ├── required │ ├── expected.json │ └── input.json ├── root_array │ ├── expected.json │ └── input.json ├── simple │ ├── expected.json │ └── input.json └── unique_structure_names │ ├── expected.json │ └── input.json └── validate.js /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .nyc_output 2 | coverage 3 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/.project -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/package.json -------------------------------------------------------------------------------- /src/idUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/src/idUtils.js -------------------------------------------------------------------------------- /src/idUtils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/src/idUtils.test.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/src/index.js -------------------------------------------------------------------------------- /src/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/src/index.test.js -------------------------------------------------------------------------------- /test/integration/samples.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples.js -------------------------------------------------------------------------------- /test/integration/samples/array/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_array/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_array/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_array/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_array/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_array_complex/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_array_complex/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_array_complex/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_array_complex/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_boolean_items/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_boolean_items/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_boolean_items/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_boolean_items/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_complex/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_complex/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_complex/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_complex/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_default/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_default/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_default/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_default/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_enum/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_enum/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_enum/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_enum/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_multiple_types/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_multiple_types/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_multiple_types/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_multiple_types/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_no_items/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_no_items/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_no_items/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_no_items/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_optional/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_optional/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_optional/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_optional/input.json -------------------------------------------------------------------------------- /test/integration/samples/array_required/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_required/expected.json -------------------------------------------------------------------------------- /test/integration/samples/array_required/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/array_required/input.json -------------------------------------------------------------------------------- /test/integration/samples/complex/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/complex/expected.json -------------------------------------------------------------------------------- /test/integration/samples/complex/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/complex/input.json -------------------------------------------------------------------------------- /test/integration/samples/default/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/default/expected.json -------------------------------------------------------------------------------- /test/integration/samples/default/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/default/input.json -------------------------------------------------------------------------------- /test/integration/samples/enum/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/enum/expected.json -------------------------------------------------------------------------------- /test/integration/samples/enum/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/enum/input.json -------------------------------------------------------------------------------- /test/integration/samples/id/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/id/expected.json -------------------------------------------------------------------------------- /test/integration/samples/id/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/id/input.json -------------------------------------------------------------------------------- /test/integration/samples/id_draft_6/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/id_draft_6/expected.json -------------------------------------------------------------------------------- /test/integration/samples/id_draft_6/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/id_draft_6/input.json -------------------------------------------------------------------------------- /test/integration/samples/integer/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/integer/expected.json -------------------------------------------------------------------------------- /test/integration/samples/integer/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/integer/input.json -------------------------------------------------------------------------------- /test/integration/samples/invalid_enum/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/invalid_enum/expected.json -------------------------------------------------------------------------------- /test/integration/samples/invalid_enum/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/invalid_enum/input.json -------------------------------------------------------------------------------- /test/integration/samples/main/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/main/expected.json -------------------------------------------------------------------------------- /test/integration/samples/main/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/main/input.json -------------------------------------------------------------------------------- /test/integration/samples/multiple_types/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/multiple_types/expected.json -------------------------------------------------------------------------------- /test/integration/samples/multiple_types/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/multiple_types/input.json -------------------------------------------------------------------------------- /test/integration/samples/no_id/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/no_id/expected.json -------------------------------------------------------------------------------- /test/integration/samples/no_id/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/no_id/input.json -------------------------------------------------------------------------------- /test/integration/samples/no_namespace/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/no_namespace/expected.json -------------------------------------------------------------------------------- /test/integration/samples/no_namespace/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/no_namespace/input.json -------------------------------------------------------------------------------- /test/integration/samples/omit_properties/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/omit_properties/expected.json -------------------------------------------------------------------------------- /test/integration/samples/omit_properties/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/omit_properties/input.json -------------------------------------------------------------------------------- /test/integration/samples/optional/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional/expected.json -------------------------------------------------------------------------------- /test/integration/samples/optional/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional/input.json -------------------------------------------------------------------------------- /test/integration/samples/optional_array/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_array/expected.json -------------------------------------------------------------------------------- /test/integration/samples/optional_array/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_array/input.json -------------------------------------------------------------------------------- /test/integration/samples/optional_complex/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_complex/expected.json -------------------------------------------------------------------------------- /test/integration/samples/optional_complex/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_complex/input.json -------------------------------------------------------------------------------- /test/integration/samples/optional_enum/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_enum/expected.json -------------------------------------------------------------------------------- /test/integration/samples/optional_enum/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/optional_enum/input.json -------------------------------------------------------------------------------- /test/integration/samples/required/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/required/expected.json -------------------------------------------------------------------------------- /test/integration/samples/required/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/required/input.json -------------------------------------------------------------------------------- /test/integration/samples/root_array/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/root_array/expected.json -------------------------------------------------------------------------------- /test/integration/samples/root_array/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/root_array/input.json -------------------------------------------------------------------------------- /test/integration/samples/simple/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/simple/expected.json -------------------------------------------------------------------------------- /test/integration/samples/simple/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/simple/input.json -------------------------------------------------------------------------------- /test/integration/samples/unique_structure_names/expected.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/unique_structure_names/expected.json -------------------------------------------------------------------------------- /test/integration/samples/unique_structure_names/input.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/samples/unique_structure_names/input.json -------------------------------------------------------------------------------- /test/integration/validate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/thedumbterminal/jsonschema-avro/HEAD/test/integration/validate.js --------------------------------------------------------------------------------