From a080e5379eb4e91ee8138e9447953d661eff7c4f Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Mesaniya Date: Fri, 6 Sep 2024 09:14:32 +0530 Subject: [PATCH] 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: ) ) ``` and code generation fails. --- src/lib/items/RouteData.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/items/RouteData.php b/src/lib/items/RouteData.php index c426a517..e50ab37a 100644 --- a/src/lib/items/RouteData.php +++ b/src/lib/items/RouteData.php @@ -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,