From 77fbce1556b10bdd0485f898fadaac1e1c15dedd Mon Sep 17 00:00:00 2001 From: Gary PEGEOT Date: Thu, 3 Dec 2020 10:42:11 +0000 Subject: [PATCH] Make "hydra:mapping" item's property nullable --- src/Hydra/JsonSchema/SchemaFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hydra/JsonSchema/SchemaFactory.php b/src/Hydra/JsonSchema/SchemaFactory.php index 41e68fdd348..a0f36401dd9 100644 --- a/src/Hydra/JsonSchema/SchemaFactory.php +++ b/src/Hydra/JsonSchema/SchemaFactory.php @@ -121,7 +121,7 @@ public function buildSchema(string $className, string $format = 'jsonld', string 'properties' => [ '@type' => ['type' => 'string'], 'variable' => ['type' => 'string'], - 'property' => ['type' => 'string'], + 'property' => ['type' => 'string', 'nullable' => true], 'required' => ['type' => 'boolean'], ], ],