public function ResourceFieldEnhancerBase::getOutputValidator in JSON:API Extras 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/ResourceFieldEnhancerBase.php \Drupal\jsonapi_extras\Plugin\ResourceFieldEnhancerBase::getOutputValidator()
File
- src/
Plugin/ ResourceFieldEnhancerBase.php, line 92
Class
- ResourceFieldEnhancerBase
- Common base class for resourceFieldEnhancer plugins.
Namespace
Drupal\jsonapi_extras\PluginCode
public function getOutputValidator() {
return new JsonSchemaValidator($this
->getOutputJsonSchema(), new Validator(), Constraint::CHECK_MODE_TYPE_CAST);
}