[x] Make your pull request atomic, fixing one issue at a time unless there are many relevant issues that cannot be decoupled.
[x] Provide a test case & update the documentation in the Readme.md
I want to use setSchemaOverride to override some types and then generate separate schema files per type with getSchemaForSymbol. Current implementation adds all overrides to each schema even if they are not used. This PR removes that behavior by default and adds an option includeAllOverrides to return it.
The includeAllOverrides is also enabled by default when generating schema for whole program.
Please:
Readme.md
I want to use
setSchemaOverride
to override some types and then generate separate schema files per type withgetSchemaForSymbol
. Current implementation adds all overrides to each schema even if they are not used. This PR removes that behavior by default and adds an optionincludeAllOverrides
to return it. TheincludeAllOverrides
is also enabled by default when generating schema for whole program.