You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($verb === strtolower($action->requestMethod) && !$only200OrDefault) {
142
+
$responseHttpStatusCodes = implode(', ', $codes);
143
+
}
144
+
}
145
+
129
146
$params = array_map(staticfunction ($param) {
130
147
return ['name' => $param];
131
148
}, $action->getParamNames());
132
-
133
149
$reflection->addMethod(
134
150
$action->actionMethodName,
135
151
$params,
136
152
AbstractMemberGenerator::FLAG_PUBLIC,
137
-
'//TODO implement ' . $action->actionMethodName
153
+
'//TODO implement ' . $action->actionMethodName . ($responseHttpStatusCodes ? PHP_EOL . '// In order to conform with OpenAPI spec, response of this action must have one of the following HTTP status code: ' . $responseHttpStatusCodes : '')
Copy file name to clipboardExpand all lines: tests/specs/issue_fix/163_generator_crash_when_using_reference_inside_an_object/pgsql/controllers/ContactController.php
+2
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,13 @@ public function checkAccess($action, $model = null, $params = [])
13
13
publicfunctionactionListForAccount($accountId)
14
14
{
15
15
//TODO implement actionListForAccount
16
+
// In order to conform with OpenAPI spec, response of this action must have one of the following HTTP status code: 200, 403
0 commit comments