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

provide schema as json #696

Open
WisniewskiP opened this issue Jun 26, 2024 · 0 comments
Open

provide schema as json #696

WisniewskiP opened this issue Jun 26, 2024 · 0 comments

Comments

@WisniewskiP
Copy link

currently schema is defined inside fusesoc/capi2/json_schema.py as a multi line string variable.
to use schema outside fusesoc it would be easier to have it as standard JSON file.

Use case:
for editing yaml files I'm using VSCode with redhat.vscode-yaml extension that supports json schema and provides validation inside editor.

at this moment I just saved schema info JSON file and then inside settings, I configured that *.core should use this schema.
following setting are needed to make it work:

    "yaml.schemas": {
        "/path/to/fusesoc.schema.json": "*.core"
    },
    "files.associations": {
        "*.core": "yaml"
    }

after that I get suggestions and validation during editing of core file.

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