-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add VS Code validation and common errors #790
Conversation
bact
commented
Jun 17, 2024
•
edited
Loading
edited
- Add how to enable real-time validation in Visual Studio Code
- Add common errors
- Update schema filename in ajv command line to match the name in wget (spdx-3-schema.json) command line example
- Add how to enable real-time validation in Visual Studio Code - Add common errors - Update schema filename in ajv command line to match the name in wget (spdx-3-schema.json) Signed-off-by: Arthit Suriyawongkul <[email protected]>
Signed-off-by: Arthit Suriyawongkul <[email protected]>
Signed-off-by: Arthit Suriyawongkul <[email protected]>
@rgopikrishnan91 and this one for the real-time validation in VS Code |
```json | ||
"json.schemas": [ | ||
{ | ||
"fileMatch": [ | ||
"*.spdx3.json" | ||
], | ||
"url": "https://spdx.org/schema/3.0.0/spdx-json-schema.json" | ||
} | ||
] | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clause 4: Conformance in v2.3 suggests naming convention of *.spdx.json
.
v3.0 has no chapter on conformance yet.
This can be modified to whatever agreed in spdx/spdx-spec#987
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - Thanks @bact
This helps the VS folks, and isn't passing through into the spec, so going ahead and including. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks!