Skip to content

Validate only specific doc examples with SHACL in CI. - #935

Merged
goneall merged 1 commit into
spdx:development/v3.0.1from
licquia:fix-ci-validation-failure
Apr 23, 2024
Merged

goneall merged 1 commit into
spdx:development/v3.0.1from
licquia:fix-ci-validation-failure

Conversation

@licquia

@licquia licquia commented Apr 23, 2024

Copy link
Copy Markdown
Collaborator

The check assumes that JSON example snippets are all parts of a single JSON document that needs validating, but not all files are written that way. To avoid errors that have nothing to do with the correctness of the examples, we should only check files which meet the check's assumptions.

Fixes #912.

The check assumes that JSON example snippets are all parts of a single
JSON document that needs validating, but not all files are written
that way.  To avoid errors that have nothing to do with the
correctness of the examples, we should only check files which meet the
check's assumptions.

Fixes spdx#912.

Signed-off-by: Jeff Licquia <jeff@licquia.org>
@licquia
licquia requested a review from goneall April 23, 2024 01:55
@licquia

licquia commented Apr 23, 2024

Copy link
Copy Markdown
Collaborator Author

@JPEWdev GitHub wouldn't let me request you as a reviewer, but I'd appreciate a look-see to make sure I'm not missing something.

@JPEWdev JPEWdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. we should figure out a way to validate the other documents, but this is fine in the mean time

@goneall goneall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @licquia

@goneall
goneall merged commit a9c2e6f into spdx:development/v3.0.1 Apr 23, 2024
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.

Check examples are now failing

3 participants