private Optional<ValidationEvent> validateEnableSimpleResponsesConfig(
            Map<String, AuthorizerDefinition> authorizers,
            ServiceShape service
    ) {
        String invalidConfigs = authorizers.entrySet()
                .stream()
                .filter(entry -> entry.getValue().getEnableSimpleResponses().isPresent())
                .filter(entry -> entry.getValue().getAuthorizerPayloadFormatVersion().isPresent())
                .filter(entry -> !entry.getValue().getAuthorizerPayloadFormatVersion().get().equals("2.0"))
                .map(Map.Entry::getKey)
                .sorted()
                .collect(Collectors.joining(", "));

        if (invalidConfigs.isEmpty()) {
            return Optional.empty();
        }

        AuthorizersTrait authorizersTrait = service.getTrait(AuthorizersTrait.class).get();
        return Optional.of(error(service,
                authorizersTrait,
                String.format(
                        "The enableSimpleResponses member of %s is only supported when authorizedPayloadFormatVersion "
                                + "is 2.0. The following authorizers are misconfigured: %s",
                        AuthorizersTrait.ID,
                        invalidConfigs)));
    }
Each authorizer with the enableSimpleResponses member defined
should have the authorizedPayloadFormatVersion member set to 2.0.
smithy-aws-apigateway-traits/src/main/java/software/amazon/smithy/aws/apigateway/traits/AuthorizersTraitValidator.java