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

Change error messages related to ISO 8601 #530

Merged

Conversation

jspeed-meyers
Copy link
Contributor

Fix #529.

Because the SPDX specification uses a subset of ISO-8601 for datetime values, error messages that request the user use ISO-8601 dates are incorrect. These changes make clear to the user the exact format, as dictated by the SPDX specification, that dates should be specified in.

I also changed one comment in utils.py to make clear to future readers of the codebase what DATE_ISO_REGEX represents.

Because the SPDX specification uses a subset of ISO-8601 for
datetime values, error messages that request the user use ISO-8601
dates are incorrect. These changes make clear to the user the
exact format, as dictated by the SPDX spec, that dates should be
specified in.

Signed-off-by: John Speed Meyers <jsmeyers@chainguard.dev>
Copy link
Collaborator

@armintaenzertng armintaenzertng left a comment

Choose a reason for hiding this comment

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

Thanks, looks good! :)

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.

Fix Error Message Related to ISO 8601 format for creationInfo created field
2 participants