Class McpSchemas.NamedJsonSchema

java.lang.Object
org.forgerock.openig.mcp.McpSchemas.NamedJsonSchema
Enclosing class:
McpSchemas

public static final class McpSchemas.NamedJsonSchema extends Object
A named JSON Schema.
  • Constructor Details

    • NamedJsonSchema

      public NamedJsonSchema(String name, com.networknt.schema.Schema schema)
      Creates a new NamedJsonSchema.
      Parameters:
      name - the name of the schema
      schema - the JSON Schema
  • Method Details

    • name

      public String name()
      Returns the name of the schema.
      Returns:
      the name of the schema
    • validate

      public List<String> validate(com.fasterxml.jackson.databind.JsonNode json)
      Validate against this schema.
      Parameters:
      json - the JSON to validate
      Returns:
      the list of validation error messages, or an empty list if valid.