Skip to content

Commit 18f1d5a

Browse files
committed
Fix bug
1 parent 5a32a29 commit 18f1d5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3392,7 +3392,7 @@ private function setComponentSchema(String $tableName) /*: void*/
33923392
$column = $table->get($columnName);
33933393
$properties = $this->types[$column->getType()];
33943394
foreach ($properties as $key => $value) {
3395-
$this->openapi->set("components|schemas|$tableName|properties|$columnName|$key", $type);
3395+
$this->openapi->set("components|schemas|$tableName|properties|$columnName|$key", $value);
33963396
}
33973397

33983398
}

src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function setComponentSchema(String $tableName) /*: void*/
8181
$column = $table->get($columnName);
8282
$properties = $this->types[$column->getType()];
8383
foreach ($properties as $key => $value) {
84-
$this->openapi->set("components|schemas|$tableName|properties|$columnName|$key", $type);
84+
$this->openapi->set("components|schemas|$tableName|properties|$columnName|$key", $value);
8585
}
8686

8787
}

0 commit comments

Comments
 (0)