The websocket subprotocol this Validator is targeting
An array or object containing JSON Schemas. Alternatively, a path to a location where a JSON schema (or schemas) can be found.
Optionaloptions: {OptionalconfSuffix?: stringThe response schema ID suffix (e.g. ".conf" or "Response"). Defaults to ".conf" for backwards compatibility.
OptionalreqSuffix?: stringThe request schema ID suffix (e.g. ".req" or "Request"). Defaults to ".req" for backwards compatibility.
OptionalurnNid?: stringThe common namespace ID (nid) used in the URN of all schema IDs in the collection
Optionalversion?: "draft-04" | "draft-06" | "draft-07"The JSON schema version used by this validator
Creates a
Validatorobject which can be used with thestrictModeValidatorsoption ofRPCServerorRPCClientto enable strict schema validation for a given subprotocol.