Converts GraphQL Schema Language to JSON Schema. Version 1.0.0, maintenance mode. A fork of the original graphql-json-schema with fixes for modern SDL syntax, including support for union types, scalar definitions, and required fields. Unlike other converters, this library outputs draft-04 JSON Schema with custom annotations like GRAPHQL_SCALAR and GRAPHQL_ENUM. Release cadence is low; last release was May 2020. Differentiator: handles GraphQL-specific types and includes field arguments.
npm install graphql-json-schema-fixNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates converting a basic GraphQL schema with scalar and type definitions to JSON Schema using the default import.
Use graphql-to-json-schema or the original graphql-json-schema if you need ongoing support.
Use a tool like jsonschema-draft4-to-draft7 to upgrade the schema.
Post-process the output to replace these with JSON Schema-compliant types.
Strip 'arguments' properties from the output or use a different library that does not include them.
Install with 'npm install @yoshokatana/graphql-json-schema' and import accordingly.
Use 'import transform from ...' or 'const transform = require(...)'.
Remove unsupported SDL elements or use a more up-to-date library.
No dependency data recorded yet.