private List<ValidationEvent> validateAuthScheme(
                String schemeName,
                Map<Identifier, Literal> authScheme,
                FromSourceLocation sourceLocation
        ) {
            List<ValidationEvent> events = new ArrayList<>();

            BiFunction<FromSourceLocation, String, ValidationEvent> emitter = getEventEmitter();

            boolean validatedAuth = false;
            for (AuthSchemeValidator authSchemeValidator : EndpointRuleSet.getAuthSchemeValidators()) {
                if (authSchemeValidator.test(schemeName)) {
                    events.addAll(authSchemeValidator.validateScheme(authScheme, sourceLocation, emitter));
                    validatedAuth = true;
                }
            }

            if (validatedAuth) {
                return events;
            }
            return ListUtils.of(warning(serviceShape,
                    String.format("Did not find a validator for the `%s` "
                            + "auth scheme", schemeName)));
        }
Validator which verifies an endpoint with an authSchemes property conforms to a strict schema.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/validators/RuleSetAuthSchemesValidator.java