Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON schema for config file #888

Open
niklasravnsborg opened this issue Jun 21, 2024 · 0 comments
Open

JSON schema for config file #888

niklasravnsborg opened this issue Jun 21, 2024 · 0 comments

Comments

@niklasravnsborg
Copy link

Having a JSON schema for the config file (.pyre_configuration) would be beneficial. This would not only facilitate easier editing of configurations but could also enable auto-generation of documentation tables or other useful outputs.

Schemas can be integrated using the $schema key to enable editor completions:

"$schema": "url_to_schema",

For comparison, pyright already has a configuration schema here: https://github.com/microsoft/pyright/blob/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json

Resources for creating a schema:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant