//! Shared by the WebSocket modules (`tungstenite`, `axum::ws`): a text or
//! binary frame's payload is a JSON message, validated like a JSON body.
use ;
use VldParse;
/// Parse a frame's payload as JSON and validate it; malformed JSON is a
/// single `parse_error` issue at the root (as for HTTP JSON bodies).
pub
/// Serialize `value`, check the JSON against `T`'s own schema, return the
/// JSON text.
pub
/// The HTTP 422 body (`{"error": "Validation failed", "issues": [...]}`) as text.
pub