-
-
Notifications
You must be signed in to change notification settings - Fork 524
Add support to configure packages-to-scan as list using YAML Syntax #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The property springdoc:
packages-to-scan: test.org.springdoc.api.app63.toto, test.org.springdoc.api.titi Maybe you are not testing with the latest stable version. v1.2.28 |
@bnasslahsen |
I confirm the support to configure package-to-scan as list using YAML syntax will be added for the next release v1.2.29. |
looking forward tot test that version. Thx. |
I am not able to use packages-to-scan nor paths-to-match. using one package or one path does work.
However, from the moment I want a list of more than one element it resolves in just one list with one element, of null:
`springdoc :
packages-to-scan :
(the dots are dashes, escaping them in markdown does not seem to work)
`
springdoc : packages-to-scan : some.package
Gives a list, with one element. (so this seems to work als long as you need only one package/path)
springdoc : packages-to-scan : some.package, some.secondpackage
does resolve in a list with one element ; "some.package, some.secondpackage', which is of course not the result we want.
Looking to the code, I think that it just cannot work. It is used as a simple @value(SPRINGDOC_PACKAGES_TO_SCAN) inside the AbstractOpenApiResource, while (I think) those lists only work in ConfigurationProperties.
Easy to reproduce: add
@Value(SPRINGDOC_PACKAGES_TO_SCAN) private List<String> packagesToScan;
in the test AbstractSpringDocTest. and add some packages to the application-test.yml
Any hints how to get around this? (or am I missing something?)
Thanks
The text was updated successfully, but these errors were encountered: