Skip to content

Commit

Permalink
fix: bracket correction in readme (#1689)
Browse files Browse the repository at this point in the history
Co-authored-by: Rahul <[email protected]>
  • Loading branch information
ghoshrahul and terribleuserofapollo authored Jan 8, 2025
1 parent 9ad2fb9 commit faf0bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $openapi = (new \OpenApi\Generator($logger))
->setNamespaces(['My\\Annotations\\'])
->setAnalyser(new \OpenApi\Analysers\ReflectionAnalyser([new OpenApi\Analysers\DocBlockAnnotationFactory(), new OpenApi\Analysers\AttributeAnnotationFactory()]))
->setVersion(\OpenApi\Annotations\OpenApi::VERSION_3_0_0)
->generate(['/path1/to/project', $finder], new \OpenApi\Analysis([], $context)), $validate);
->generate(['/path1/to/project', $finder], new \OpenApi\Analysis([], $context), $validate);
```

`Aliases` and `namespaces` are additional options that allow to customize the parsing of docblocks.
Expand Down

0 comments on commit faf0bb4

Please sign in to comment.