Skip to content

Commit 4fcf4de

Browse files
committed
fix(specs): resource model ref to the base model
1 parent cbfd46a commit 4fcf4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Specs/Builders/Components/Model/ModelResourceComponentBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function build(Model $resourceModel): ModelResourceComponent
2626
$component->type = 'object';
2727
$component->properties = [
2828
'allOf' => [
29-
['$ref' => "#/components/schemas/{$resourceComponentBaseName}Resource"],
29+
['$ref' => "#/components/schemas/{$resourceComponentBaseName}"],
3030
[
3131
'type' => 'object',
3232
'properties' => $this->getPropertiesFromSchema($resourceModel)

0 commit comments

Comments
 (0)