LintSchema
Lint a GraphQL schema document against the graph's lint rules and return each diagnostic's coordinate, severity level, message, rule, and source location, plus the error, warning, total, and ignored counts.
This is the same check that rover graph lint and rover subgraph lint run.
Nothing is published and no state changes.
Provide the graph ID and the schema as SDL.
Optionally provide baseSdl to report only the diagnostics that the new schema introduces against that base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sdl | Yes | The schema to lint. | |
| baseSdl | No | The schema to diff rule violations against, if not provided the full set of rule violations will be returned for the proposed sdl. | |
| graphId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| errors | No | ||
| extensions | No |