Skip to content

Ignore unknown key "$schema" in schema validation #11182

@Avasam

Description

@Avasam

Following #11040 / #11045, I now get Config contains unrecognized setting "$schema" in a few projects, including typeshed.

Whilst it's true that The pyright VS Code extension ships with a JSON schema for "pyrightconfig.json",, that doesn't work for config files names slightly differently or if not specifically using VSCode w/ Pylance.

That is easy to solve by explicitly setting the schema with $schema, but that now prints a warning.

Examples of config files named differently (for additional tests that can't all be configured in 1 file):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions