graphql / graphql/graphiql

`monaco-graphql` should export JSONSchema

Open
#2,673 0 comments 0 reactions 0 assignees View on GitHub
enhancement monaco-graphql
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

To empower @jonathanawesome 's proposed `EasyVars`, inspired by onegraph's variables form, as well as other tools that want to use it, `monaco-graphql` should expose the current variables JSONSchema via an API and change events.

This way it could be:

- used to generate complete forms from JSON Schema using any of the number of react form library support
- used with `monaco-yaml` and perhaps other monaco modes that support the `monaco-json` like `JSONSchema` `schemas` option.
- used for other forms of validation or interaction, ala vscode api "CustomEditors" - for example, a hypothetical platform could implement a drag and drop-enabled 'variables' pane with a custom renderer that, as changes occur, updates the string value from AST being generated/modified in memory

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.