Skip to content

pathsToMatch and packagesToScan only work in camel-case in application.yml #338

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

Closed
waschmittel opened this issue Jan 10, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@waschmittel
Copy link

springdoc.pathsToMatch # works
springdoc.packagesToScan # works
springdoc.paths-to-match # is ignored
springdoc.packages-to-scan # is ignored

I assume this is because of the SpEL expressions definied in org.springdoc.core.Constants

This is especially unfortunate because the non-camel-case variant is specified in spring-configuration-metadata.json which is read by my IDE for auto-completion of application.yml

It took me a while to find out why it didn't work for me.

But I'm still very happy that I finally have OpenApi 3.0 :-)

@bnasslahsen
Copy link
Collaborator

Hi @waschmittel ,

Thank you for your feedback.
It will be fixed, for the next release.

@bnasslahsen bnasslahsen added the enhancement New feature or request label Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants