Skip to content

Commit a080e53

Browse files
committed
It seems like there is nothing to do here.
If params is not required then we get validation error: ``` Array ( [openApiPath] => Array ( [0] => Failed to validate OpenAPI spec:<ul> <li>[/paths/~1pets~1{id}/get/parameters/1] Parameter &#39;required&#39; must be true for &#39;in&#39;: &#39;path&#39;.</li> </ul> ) ) ``` and code generation fails.
1 parent 16862ad commit a080e53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib/items/RouteData.php

-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ public function init()
189189
if (array_key_exists($paramName, $pathParameters)) {
190190
//$additional = $pathParameters[$paramName]->schema->additionalProperties ?? null;
191191
$this->params[$paramName] = [
192-
//@TODO: use only required params
193192
//'required'=> $pathParameters[$paramName]->required,
194193
'type' => $pathParameters[$paramName]->schema->type ?? null,
195194
//'model' => $additional ? SchemaResponseResolver::guessModelByRef($additional) : null,

0 commit comments

Comments
 (0)