Skip to content

Commit 13e5d70

Browse files
author
Enno Woortmann
committed
Simplify schema definition generation
1 parent 775537c commit 13e5d70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/SchemaDefinition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ public function resolveReference(string $propertyName, array $path): PropertyInt
7373
$key = implode('-', $path);
7474

7575
if (!$this->resolvedPaths->offsetExists($key)) {
76-
// create a dummy property for the path first. If the path is used recursive the recursive usages will point
76+
// create a dummy entry for the path first. If the path is used recursive the recursive usages will point
7777
// to the currently created property
78-
$this->resolvedPaths->offsetSet($key, (new Property('', ''))->addValidator(new PropertyValidator('Dummy Property Alive', PHPModelGeneratorException::class, 'Lulatsch')));
78+
$this->resolvedPaths->offsetSet($key, true);
7979
try {
8080
$this->resolvedPaths->offsetSet($key, (new PropertyFactory())
8181
->create(

0 commit comments

Comments
 (0)