Class MetaAttributeValidator


  • public class MetaAttributeValidator
    extends Object
    Since:
    24.04.2021
    Author:
    Pascal Knueppel
    • Constructor Detail

      • MetaAttributeValidator

        public MetaAttributeValidator()
    • Method Detail

      • validateAttribute

        public static Optional<com.fasterxml.jackson.databind.JsonNode> validateAttribute​(SchemaAttribute schemaAttribute,
                                                                                          com.fasterxml.jackson.databind.JsonNode attribute)
        will validate an attribute in the context of meta-attribute validation. In such a context attributes like "returned", "mutability" etc. will have no effect
        Parameters:
        schemaAttribute - the attributes definition
        attribute - the attribute to validate
        Returns:
        the validated node or an empty if the node can be ignored