pub async fn handle_validate(
req: HttpRequest,
body: String,
state: Data<AppState>,
) -> Result<HttpResponse, HaystackError>Expand description
POST /api/validate — validate entities against the ontology.
Each row in the request grid is an entity dict to validate.
Returns a grid of validation issues with columns: entity (Str),
issueType (Str), and detail (Str). An empty grid means all
entities passed validation.