L5-Swagger icon indicating copy to clipboard operation
L5-Swagger copied to clipboard

Placing annotations in external files

Open BigBlockStudios opened this issue 6 months ago • 3 comments

  • L5-Swagger Version: 8.6.1
  • PHP Version: 8.2.22
  • OS: Ubuntu

Description:

Annotations placed in external files not read. I would like to place annotations in external files beside the class/models/resources/etc. Creating a User.php model/class and an annotation file beside it UserAnnotation.php with just the annotation in it is ignored. No errors are thrown.
It appears that only php files with annotations are scanned if there is a matching class or method declaration.

Steps To Reproduce:

Create a file with class Foo.php Create a file FooAnnotation.php containing only the annotation block.

BigBlockStudios avatar Aug 23 '24 20:08 BigBlockStudios