You are here

protected property ResourceResponseValidator::$validator in JSON:API 8.2

Same name and namespace in other branches
  1. 8 src/EventSubscriber/ResourceResponseValidator.php \Drupal\jsonapi\EventSubscriber\ResourceResponseValidator::validator

The schema validator.

This property will only be set if the validator library is available.

Type: \JsonSchema\Validator|null

File

src/EventSubscriber/ResourceResponseValidator.php, line 55

Class

ResourceResponseValidator
Response subscriber that validates a JSON:API response.

Namespace

Drupal\jsonapi\EventSubscriber

Code

protected $validator;