Skip to content

Require canonical inputs#200

Open
immqu wants to merge 3 commits into
aboutcode-org:mainfrom
immqu:non-canonical
Open

Require canonical inputs#200
immqu wants to merge 3 commits into
aboutcode-org:mainfrom
immqu:non-canonical

Conversation

@immqu
Copy link
Copy Markdown
Contributor

@immqu immqu commented May 22, 2026

This PR implements the recent change in the vers-spec which requires canonical inputs instead of normalizing them.
The parser now rejects:

  • ASCII whitespace in VERS strings and individual constraints
  • Leading or trailing pipe separators
  • Consecutive pipe separators
  • Non-canonical constraint ordering
  • Duplicate versions across constraints
  • Invalid comparator sequences
    It also adds schema-driven parse tests for canonical and non-canonical cases.

immqu added 3 commits May 15, 2026 15:23
Signed-off-by: Kunz, Immanuel <immanuel.kunz@aisec.fraunhofer.de>
Signed-off-by: Kunz, Immanuel <immanuel.kunz@aisec.fraunhofer.de>
Signed-off-by: Kunz, Immanuel <immanuel.kunz@aisec.fraunhofer.de>
@immqu
Copy link
Copy Markdown
Contributor Author

immqu commented May 22, 2026

Addresses #196

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.

1 participant