@Override
    public List<ValidationEvent> validate(Model model) {
        List<ValidationEvent> events = new ArrayList<>();

        for (Shape shape : model.getShapesWithTrait(EnumTrait.class)) {
            events.addAll(validateEnumTrait(shape, shape.expectTrait(EnumTrait.class)));
        }

        return events;
    }
Ensures that enum traits are valid.

<p>If one enum definition contains a name, then all definitions must contain
a name. All enum values and names must be unique across the list of
definitions.
smithy-model/src/main/java/software/amazon/smithy/model/validation/validators/EnumTraitValidator.java