Package org.forgerock.openig.mcp
Class McpSchemas.NamedJsonSchema
java.lang.Object
org.forgerock.openig.mcp.McpSchemas.NamedJsonSchema
- Enclosing class:
- McpSchemas
A named JSON Schema.
-
Constructor Summary
ConstructorsConstructorDescriptionNamedJsonSchema(String name, com.networknt.schema.Schema schema) Creates a new NamedJsonSchema. -
Method Summary
-
Constructor Details
-
NamedJsonSchema
Creates a new NamedJsonSchema.- Parameters:
name- the name of the schemaschema- the JSON Schema
-
-
Method Details
-
name
Returns the name of the schema.- Returns:
- the name of the schema
-
validate
Validate against this schema.- Parameters:
json- the JSON to validate- Returns:
- the list of validation error messages, or an empty list if valid.
-