Skip to content

Commit c348881

Browse files
committed
Fix #116
1 parent 260cef8 commit c348881

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Schema.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,10 @@ private function processObject($data, Context $options, $path, $result = null)
736736
$ref->setImported($refResult);
737737
return $refResult;
738738
} catch (InvalidValue $exception) {
739+
if ($this->objectItemClass === 'Swaggest\JsonSchema\Schema') {
740+
throw $exception;
741+
}
742+
739743
$ref->unsetImported();
740744
$skipValidation = $options->skipValidation;
741745
$options->skipValidation = true;

0 commit comments

Comments
 (0)