Publish SSVC v2025.9.1 #985
Merged
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.
This is primarily to support CVE schema updates CVEProject/cve-schema#144 that will help us SSVC 2.0.0 to CVE-Schema program and CSAF program.
Copilot Summary
This pull request updates the namespace validation logic and corresponding JSON schema patterns to improve consistency and maintainability across the codebase. The main change is the switch from using a compiled regex object to using a regex string for namespace pattern validation, which is reflected both in Python code and in the schema definitions.
Namespace validation updates:
src/ssvc/namespaces.py: Changed namespace validation to use the regex stringNS_PATTERN_STRwithre.match, instead of the compiled regex objectNS_PATTERN, for improved clarity and consistency. [1] [2]src/ssvc/utils/field_specs.py: Updated imports to useNS_PATTERN_STRinstead ofNS_PATTERNfor namespace field specifications.Schema pattern updates:
data/schema/v2/DecisionTable_2_0_0.schema.json,data/schema/v2/DecisionPoint_2_0_0.schema.json,data/schema/v2/DecisionPointGroup_2_0_0.schema.json,data/schema/v2/SelectionList_2_0_0.schema.json,data/schema/v2/SsvcObjectRegistry_2_0_0.schema.json: Updated thepatternproperty for namespace validation to use a regex string that matches the new Python validation logic. This ensures consistency between code and schema validation. [1] [2] [3] [4] [5] [6] [7]