├── .eslintrc ├── .gitattributes ├── .github └── workflows │ └── testing.yml ├── .gitignore ├── README.md ├── bin ├── cli.js └── main.js ├── index.js ├── lib ├── dsl.json ├── enums.js ├── gql-queries.js ├── gql.js ├── index.js ├── parse.js ├── proto.js ├── service.js ├── typescript.js └── utils.js ├── package.json └── test ├── example.test.js ├── fixtures ├── external.schema.json ├── refs.schema.json └── test.schema.json ├── schemas.test.js ├── schemas ├── basic_enums │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── definitions │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── empty_schemas │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── inline_schemas │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── input_types │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── multiple_inputs │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── recursive_schemas │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts └── scalar_types │ ├── queries.gql │ ├── schema.gql │ ├── schema.json │ ├── schema.proto │ └── schema.ts ├── service.test.js └── utils.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | package-lock.json binary 2 | -------------------------------------------------------------------------------- /.github/workflows/testing.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/.github/workflows/testing.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/README.md -------------------------------------------------------------------------------- /bin/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/bin/cli.js -------------------------------------------------------------------------------- /bin/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/bin/main.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/index.js -------------------------------------------------------------------------------- /lib/dsl.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/dsl.json -------------------------------------------------------------------------------- /lib/enums.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/enums.js -------------------------------------------------------------------------------- /lib/gql-queries.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/gql-queries.js -------------------------------------------------------------------------------- /lib/gql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/gql.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/parse.js -------------------------------------------------------------------------------- /lib/proto.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/proto.js -------------------------------------------------------------------------------- /lib/service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/service.js -------------------------------------------------------------------------------- /lib/typescript.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/typescript.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/package.json -------------------------------------------------------------------------------- /test/example.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/example.test.js -------------------------------------------------------------------------------- /test/fixtures/external.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/fixtures/external.schema.json -------------------------------------------------------------------------------- /test/fixtures/refs.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/fixtures/refs.schema.json -------------------------------------------------------------------------------- /test/fixtures/test.schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/fixtures/test.schema.json -------------------------------------------------------------------------------- /test/schemas.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas.test.js -------------------------------------------------------------------------------- /test/schemas/basic_enums/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/basic_enums/queries.gql -------------------------------------------------------------------------------- /test/schemas/basic_enums/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/basic_enums/schema.gql -------------------------------------------------------------------------------- /test/schemas/basic_enums/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/basic_enums/schema.json -------------------------------------------------------------------------------- /test/schemas/basic_enums/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/basic_enums/schema.proto -------------------------------------------------------------------------------- /test/schemas/basic_enums/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/basic_enums/schema.ts -------------------------------------------------------------------------------- /test/schemas/definitions/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/definitions/queries.gql -------------------------------------------------------------------------------- /test/schemas/definitions/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/definitions/schema.gql -------------------------------------------------------------------------------- /test/schemas/definitions/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/definitions/schema.json -------------------------------------------------------------------------------- /test/schemas/definitions/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/definitions/schema.proto -------------------------------------------------------------------------------- /test/schemas/definitions/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/definitions/schema.ts -------------------------------------------------------------------------------- /test/schemas/empty_schemas/queries.gql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/schemas/empty_schemas/schema.gql: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/schemas/empty_schemas/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/empty_schemas/schema.json -------------------------------------------------------------------------------- /test/schemas/empty_schemas/schema.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | package test; 3 | -------------------------------------------------------------------------------- /test/schemas/empty_schemas/schema.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/schemas/inline_schemas/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/inline_schemas/queries.gql -------------------------------------------------------------------------------- /test/schemas/inline_schemas/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/inline_schemas/schema.gql -------------------------------------------------------------------------------- /test/schemas/inline_schemas/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/inline_schemas/schema.json -------------------------------------------------------------------------------- /test/schemas/inline_schemas/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/inline_schemas/schema.proto -------------------------------------------------------------------------------- /test/schemas/inline_schemas/schema.ts: -------------------------------------------------------------------------------- 1 | export type Root = { 2 | items: object[]; 3 | }; 4 | -------------------------------------------------------------------------------- /test/schemas/input_types/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/input_types/queries.gql -------------------------------------------------------------------------------- /test/schemas/input_types/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/input_types/schema.gql -------------------------------------------------------------------------------- /test/schemas/input_types/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/input_types/schema.json -------------------------------------------------------------------------------- /test/schemas/input_types/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/input_types/schema.proto -------------------------------------------------------------------------------- /test/schemas/input_types/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/input_types/schema.ts -------------------------------------------------------------------------------- /test/schemas/multiple_inputs/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/multiple_inputs/queries.gql -------------------------------------------------------------------------------- /test/schemas/multiple_inputs/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/multiple_inputs/schema.gql -------------------------------------------------------------------------------- /test/schemas/multiple_inputs/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/multiple_inputs/schema.json -------------------------------------------------------------------------------- /test/schemas/multiple_inputs/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/multiple_inputs/schema.proto -------------------------------------------------------------------------------- /test/schemas/multiple_inputs/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/multiple_inputs/schema.ts -------------------------------------------------------------------------------- /test/schemas/recursive_schemas/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/recursive_schemas/queries.gql -------------------------------------------------------------------------------- /test/schemas/recursive_schemas/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/recursive_schemas/schema.gql -------------------------------------------------------------------------------- /test/schemas/recursive_schemas/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/recursive_schemas/schema.json -------------------------------------------------------------------------------- /test/schemas/recursive_schemas/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/recursive_schemas/schema.proto -------------------------------------------------------------------------------- /test/schemas/recursive_schemas/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/recursive_schemas/schema.ts -------------------------------------------------------------------------------- /test/schemas/scalar_types/queries.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/scalar_types/queries.gql -------------------------------------------------------------------------------- /test/schemas/scalar_types/schema.gql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/scalar_types/schema.gql -------------------------------------------------------------------------------- /test/schemas/scalar_types/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/scalar_types/schema.json -------------------------------------------------------------------------------- /test/schemas/scalar_types/schema.proto: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/scalar_types/schema.proto -------------------------------------------------------------------------------- /test/schemas/scalar_types/schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/schemas/scalar_types/schema.ts -------------------------------------------------------------------------------- /test/service.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/service.test.js -------------------------------------------------------------------------------- /test/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/json-schema-faker/json-schema-to/HEAD/test/utils.js --------------------------------------------------------------------------------