$processors, ]; $openapi = (new OpenApi\Generator()) ->setProcessors($processors) ->generate([__DIR__ . '/app']); $spec = json_encode($openapi, JSON_PRETTY_PRINT); file_put_contents(__DIR__ . '/schema-query-parameter-processor.json', $spec); //echo $spec;