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

Using SDF schema for VSCode SDF validation and intellisense #1326

Open
robobe opened this issue Sep 23, 2023 · 1 comment
Open

Using SDF schema for VSCode SDF validation and intellisense #1326

robobe opened this issue Sep 23, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@robobe
Copy link

robobe commented Sep 23, 2023

Hi i using VSCode XML redhat extension and schemas from http://sdformat.org/schemas/root.xsd to get SDF validation and code complete

https://github.com/redhat-developer/vscode-xml/blob/main/docs/Validation.md#validation-with-xsd-grammar

<sdf version="1.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://sdformat.org/schemas/root.xsd">

It's work very nice but the the schema in http://sdformat.org/schemas/root.xsd are out dated

vscode schema validation

vscode autocomplete

I read the issue #2 and #138.
Is it possible to update the schema.
Can i contribute to maintain the schema

@robobe robobe added the enhancement New feature or request label Sep 23, 2023
@azeey
Copy link
Collaborator

azeey commented Nov 6, 2023

There's some work #535 and #643, but we haven't been able to get them landed. From what I recall, the problem was related to the fact that we have tags, such as <link> that have different definitions depending on what the parent tag is. For example, link has one definition when it's inside <model> (http://sdformat.org/spec?ver=1.10&elem=link) or another when it's inside //state/model (http://sdformat.org/spec?ver=1.10&elem=state#model_link). We just haven't had the time to find a good solution, but if you want to contribute, those two PRs would be a good starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

2 participants