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

Add VS Code validation and common errors #790

Merged
merged 6 commits into from
Aug 9, 2024

Conversation

bact
Copy link
Collaborator

@bact bact commented Jun 17, 2024

  • 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]>
bact added 2 commits June 18, 2024 11:48
Signed-off-by: Arthit Suriyawongkul <[email protected]>
Signed-off-by: Arthit Suriyawongkul <[email protected]>
@bact
Copy link
Collaborator Author

bact commented Jun 19, 2024

@rgopikrishnan91 and this one for the real-time validation in VS Code

Comment on lines +128 to +137
```json
"json.schemas": [
{
"fileMatch": [
"*.spdx3.json"
],
"url": "https://spdx.org/schema/3.0.0/spdx-json-schema.json"
}
]
```
Copy link
Collaborator Author

@bact bact Jul 10, 2024

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

@goneall goneall added this to the 3.0.1 milestone Jul 22, 2024
Copy link
Member

@goneall goneall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks @bact

@zvr zvr removed this from the 3.0.1 milestone Jul 26, 2024
@kestewart
Copy link
Contributor

This helps the VS folks, and isn't passing through into the spec, so going ahead and including.

@kestewart kestewart closed this Aug 9, 2024
Copy link
Contributor

@kestewart kestewart left a 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!

@kestewart kestewart reopened this Aug 9, 2024
@kestewart kestewart merged commit 359d85e into spdx:main Aug 9, 2024
2 checks passed
@bact bact deleted the add-vscode-validation branch August 9, 2024 18:54
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

Successfully merging this pull request may close these issues.

4 participants