diff --git a/src/Plugin/jsonapi/FieldEnhancer/UrlLinkEnhancer.php b/src/Plugin/jsonapi/FieldEnhancer/UrlLinkEnhancer.php index 57966637cec79fa917d0726688af9f9bb210d1fe..0cf8ba5c6308d6f35a6057757b40e091209ec6ba 100644 --- a/src/Plugin/jsonapi/FieldEnhancer/UrlLinkEnhancer.php +++ b/src/Plugin/jsonapi/FieldEnhancer/UrlLinkEnhancer.php @@ -141,8 +141,18 @@ class UrlLinkEnhancer extends ResourceFieldEnhancerBase implements ContainerFact 'type' => 'object', 'properties' => [ 'uri' => ['type' => 'string'], - 'title' => ['type' => 'string'], - 'options' => ['type' => 'array'], + 'title' => [ + 'anyOf' => [ + ['type' => 'null'], + ['type' => 'string'], + ], + ], + 'options' => [ + 'anyOf' => [ + ['type' => 'array'], + ['type' => 'object'], + ], + ], 'url' => ['type' => 'string'], ], ];