public function RpcRequestFactory::getInputValidator in JSON-RPC 2.x
Same name and namespace in other branches
- 8 src/Shaper/RpcRequestFactory.php \Drupal\jsonrpc\Shaper\RpcRequestFactory::getInputValidator()
File
- src/
Shaper/ RpcRequestFactory.php, line 66
Class
- RpcRequestFactory
- Creates RPC Request objects.
Namespace
Drupal\jsonrpc\ShaperCode
public function getInputValidator() {
$schema = Json::decode(file_get_contents(__DIR__ . '/request-schema.json'));
return new JsonSchemaValidator($schema, $this->validator, Constraint::CHECK_MODE_TYPE_CAST);
}