Skip to content

Commit

Permalink
It seems like there is nothing to do here.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SOHELAHMED7 committed Sep 6, 2024
1 parent 16862ad commit a080e53
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/lib/items/RouteData.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ public function init()
if (array_key_exists($paramName, $pathParameters)) {
//$additional = $pathParameters[$paramName]->schema->additionalProperties ?? null;
$this->params[$paramName] = [
//@TODO: use only required params
//'required'=> $pathParameters[$paramName]->required,
'type' => $pathParameters[$paramName]->schema->type ?? null,
//'model' => $additional ? SchemaResponseResolver::guessModelByRef($additional) : null,
Expand Down

0 comments on commit a080e53

Please sign in to comment.