Skip to content

Commit

Permalink
Merge f968cbd into d4d6377
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryPEGEOT committed Dec 3, 2020
2 parents d4d6377 + f968cbd commit a2a625e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Hydra/JsonSchema/SchemaFactory.php
Expand Up @@ -121,7 +121,10 @@ public function buildSchema(string $className, string $format = 'jsonld', string
'properties' => [
'@type' => ['type' => 'string'],
'variable' => ['type' => 'string'],
'property' => ['type' => 'string'],
'property' => [
'nullable' => true,
'anyOf' => [['type' => 'string'], ['type' => 'null']],
],
'required' => ['type' => 'boolean'],
],
],
Expand Down

0 comments on commit a2a625e

Please sign in to comment.