Skip to content

Commit 60079d0

Browse files
committed
Fix bug
1 parent b5fda86 commit 60079d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ private function setComponentSchema(String $tableName) /*: void*/
122122
}
123123
}
124124
$this->openapi->set("components|schemas|list_of_$tableName|type", "object");
125-
$this->openapi->set("components|schemas|list_of_$tableName|properties|count|type", "integer");
126-
$this->openapi->set("components|schemas|list_of_$tableName|properties|count|format", "int64");
125+
$this->openapi->set("components|schemas|list_of_$tableName|properties|results|type", "integer");
126+
$this->openapi->set("components|schemas|list_of_$tableName|properties|results|format", "int64");
127127
$this->openapi->set("components|schemas|list_of_$tableName|properties|records|type", "array");
128128
$this->openapi->set("components|schemas|list_of_$tableName|properties|records|items|\$ref", "#/components/schemas/single_" . urlencode($tableName));
129129
}

0 commit comments

Comments
 (0)