Skip to content

Commit 5eda264

Browse files
committed
fix: openapi specs require unique operationId field to be set on each operation
1 parent 4dfa3ed commit 5eda264

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8322,6 +8322,7 @@ private function setPaths() /*: void*/
83228322
$this->openapi->set("paths|$path|$method|requestBody|\$ref", "#/components/requestBodies/$operationType");
83238323
}
83248324
$this->openapi->set("paths|$path|$method|tags|0", "$type");
8325+
$this->openapi->set("paths|$path|$method|operationId", "$operation"."_"."$type");
83258326
if ($operationType == 'updateTable') {
83268327
$this->openapi->set("paths|$path|$method|description", "rename table");
83278328
} else {
@@ -8630,6 +8631,7 @@ private function setPath(string $tableName) /*: void*/
86308631
$this->openapi->set("paths|$path|$method|requestBody|\$ref", "#/components/requestBodies/$operation-" . rawurlencode($tableName));
86318632
}
86328633
$this->openapi->set("paths|$path|$method|tags|0", "$tableName");
8634+
$this->openapi->set("paths|$path|$method|operationId", "$operation"."_"."$tableName");
86338635
$this->openapi->set("paths|$path|$method|description", "$operation $tableName");
86348636
switch ($operation) {
86358637
case 'list':

0 commit comments

Comments
 (0)