Skip to content

Am I the only one who doesn't understand includes and excludes? :-) #1956

Answered by MikeEdgar
cristalp asked this question in Q&A
Discussion options

You must be logged in to vote

@cristalp , regex mode is only enabled when the properties start with ^ and end with $. Otherwise, this is from the MP OpenAPI specification [1]:

The following rules are used to determine whether a class is scanned for annotations:

  1. A class is not scanned if it’s listed in mp.openapi.scan.exclude.classes

  2. A class is scanned if it’s listed in mp.openapi.scan.classes

  3. A class is not scanned if its package, or any of its parent packages are listed in mp.openapi.scan.exclude.packages, unless a more complete package or parent package is listed in mp.openapi.scan.packages

  4. A class is scanned if its package or any of its parent packages are listed in mp.openapi.scan.packages

  5. A class is sc…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

Answer selected by cristalp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants