docs(core): document String structuredContent parsing in JsonSchemaValidator

This commit is contained in:
Sylwester Lachiewicz 2026-08-27 08:17:47 +02:00 • committed by Daniel Garnier-Moiroux
commit b31841eec0

View file

@ -57,6 +57,11 @@ public interface JsonSchemaValidator {
/**
* Validates the structured content against the provided JSON schema.
* <p>
* If {@code structuredContent} is a {@link String}, it is treated as a serialized
* JSON document and parsed before validation; quote embedded strings accordingly (for
* example {@code "\"red\""} for the JSON string value {@code red}). Any other type is
* converted to its JSON representation directly.
* @param schema The JSON schema to validate against.
* @param structuredContent The structured content to validate.
* @return A ValidationResponse indicating whether the validation was successful or