dotansimha / dotansimha/graphql-code-generator

YAML schema definition for root config should be more permissive

Open
#7,550 0 comments 1 reaction 0 assignees View on GitHub
core
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

When specifying config options at the root level, VSCode complains because the YAML file doesn’t match the schema specified at https://www.graphql-code-generator.com/config.schema.json. Specifically, the config options `enumsAsTypes`, `contextType`, `exportFragmentSpreadSubTypes`, `immutableTypes` and `nonOptionalTypename` (etc.) are seemingly invalid.

Specifying these options at the output level works fine.

Screenshot 2022-02-16 at 18 23 10

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.