public static Validator fromNode(Node node) {
            ObjectNode obj = node.expectObjectNode();
            Selector selector = Selector.fromNode(obj.expectStringMember("selector"));
            String message = obj.getStringMember("message").map(StringNode::getValue).orElse(null);
            Severity severity = obj.getStringMember("severity").map(Severity::fromNode).orElse(Severity.ERROR);
            return new Validator(selector, message, severity);
        }
Get a map of ID suffixes to validators.

@return Returns an unmodifiable map.
smithy-model/src/main/java/software/amazon/smithy/model/traits/TraitValidatorsTrait.java