Repository navigation
Conversation
The major part was [1-9]+, so 0.1.0 and 10.0.1 failed validation. Use (0|[1-9][0-9]*) like the minor and patch parts allow any number, without a leading zero in the major. Fixes ossf#239 Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #239
The major part of
#SchemaVersionwas[1-9]+, so10.0.1and0.1.0failed while2.10.0passed. I switched it to(0|[1-9][0-9]*), which takes any major without a leading zero. I updated spec/schema.md, docs/schema.md and the editor fallback to match.Notes
All examples and
.github/security-insights.ymlstill validate, and I checked withcue vetthat 10.0.1 and 0.1.0 now pass while 01.0.0 and 1.2 still fail. I kept 0.x valid since nothing in the spec rules it out, but it's easy to drop the0|if you'd rather not allow it. This touches the same pattern text #235 unquotes in openapi.yaml, so whichever lands second just needs a regen.