Class MetaSchemaValidator

    • Method Detail

      • getInstance

        public static MetaSchemaValidator getInstance()
        Returns:
        the singleton instance to validate documents like resourceTypes, resourceSchemas etc. against its meta schema definitions
      • validateDocument

        public ScimObjectNode validateDocument​(Schema schema,
                                               com.fasterxml.jackson.databind.JsonNode resource)
        validates the document and additionally adds the schemas-attribute to the validated document.
        Overrides:
        validateDocument in class AbstractSchemaValidator
        Parameters:
        schema - the schemas definition
        resource - the document that should be validated
        Returns:
        the validated schema document
      • validateAttribute

        protected Optional<com.fasterxml.jackson.databind.JsonNode> validateAttribute​(SchemaAttribute schemaAttribute,
                                                                                      com.fasterxml.jackson.databind.JsonNode attribute)
        the concrete attribute validation that is differs by the context in which the attribute is validated
        Specified by:
        validateAttribute in class AbstractSchemaValidator
        Parameters:
        schemaAttribute - the definition of the attribute that must be validated
        attribute - the attribute to validate
        Returns:
        the validated attribute