Skip to content

RawIntegerWithoutRange validator examples are invalid #2965

@tlindsay42

Description

@tlindsay42

Reference: https://smithy.io/2.0/guides/model-validation-examples.html#require-integers-to-have-a-range-constraint

The three RawIntegerWithoutRange examples do not work as-is because the selector navigates to the target shape, which is the built-in Integer type that doesn't have the trait. It should check for the trait on the member itself, not the target.

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