Skip to content

Mismatch in allowed chars for validator.id in definition v/s suppress trait #987

Closed
@gosar

Description

It is possible to define a validator with the id containing the dot . character.

metadata validators = [
    {
        name: "CamelCase",
        id:"Camel.Case"
    },

However, trying to add a suppress trait for this event ID, like

@suppress(["Camel.Case"])

leads to

Error validating trait `suppress`.0: String value provided for `smithy.api#suppress$member` must match regular expression: ^[_a-zA-Z][A-Za-z0-9]*$

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions