Skip to content

Commit

Permalink
Merge pull request #44 from php-openapi/43-use-only-required-params-i…
Browse files Browse the repository at this point in the history
…n-routedata

Resolve: Use only required params in RouteData #43
  • Loading branch information
cebe authored Nov 12, 2024
2 parents 9666ec1 + a080e53 commit 3c523c2
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 3c523c2

Please sign in to comment.