private List<ValidationEvent> validate(Model model, ServiceShape service) {
        Map<String, AuthorizerDefinition> authorizers = service.getTrait(AuthorizersTrait.class)
                .map(AuthorizersTrait::getAuthorizers)
                .orElseGet(HashMap::new);

        List<ValidationEvent> validationEvents = new ArrayList<>();

        Optional<ValidationEvent> authSchemaValidation =
                validateAuthSchema(authorizers, model, service);
        authSchemaValidation.ifPresent(validationEvents::add);

        Optional<ValidationEvent> enableSimpleResponsesValidation =
                validateEnableSimpleResponsesConfig(authorizers, service);
        enableSimpleResponsesValidation.ifPresent(validationEvents::add);

        return validationEvents;
    }
Validates if authorizers traits are well-defined.
smithy-aws-apigateway-traits/src/main/java/software/amazon/smithy/aws/apigateway/traits/AuthorizersTraitValidator.java