Skip to content

Improvement: Always apply namespace regex #74

Description

@peinjoh

SSVC provides https://github.com/CERTCC/SSVC/blob/main/src/ssvc/utils/ssvc_namespace_pattern.abnf

The ABNF gets generated into a regex, which gets included into the namespace FromString impl generated by our typegen.
Namespace validation runs on strings, so there is no guarantee that his always happens (as it does during selection list validation)

We could hard-couple the namespace validation to the generated Namespace type, ensuring that any validated namespaces as been both a) regex validated and b) semantically validated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions