Skip to content
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

Unable to apply OASFilter to smallryeAPI extension #1610

Closed
pradeepbavirisetty opened this issue Oct 12, 2023 · 3 comments · Fixed by #1613
Closed

Unable to apply OASFilter to smallryeAPI extension #1610

pradeepbavirisetty opened this issue Oct 12, 2023 · 3 comments · Fixed by #1613
Labels
bug Something isn't working

Comments

@pradeepbavirisetty
Copy link

Hi Team,

i am getting below error while applying CustomFilter to smallryeOpenApi and i tried to configured the filter class from configproperties and directly set to filters as well . I am sending the configurations which used in my application.

: io.smallrye.openapi.runtime.OpenApiRuntimeException: java.lang.ClassNotFoundException: com.test.utils.OASInternalAPIFilter
at io.smallrye.openapi.runtime.OpenApiProcessor.uncheckedCall(OpenApiProcessor.java:293)
at io.smallrye.openapi.runtime.OpenApiProcessor.newInstance(OpenApiProcessor.java:276)
at io.smallrye.openapi.runtime.OpenApiProcessor.getFilter(OpenApiProcessor.java:267)
at io.smallrye.openapi.runtime.OpenApiProcessor.getFilter(OpenApiProcessor.java:255)

configurations which i was set in build.gradle

plugins {
id('io.smallrye.openapi') version('3.6.2')
}

smallryeOpenApi {
//filter.set("com.test.utils.OASInternalAPIFilter")
infoTitle.set("Test Application")
schemaFilename.set("testswagger")
configProperties.set(file("src/main/resources/openapi.properties"))
}

src/main/resources/openapi.properties

mp.openapi.servers=/test
mp.openapi.scan.packages=com.test.controller
mp.openapi.filter=com.test.utils.OASInternalAPIFilter

@MikeEdgar
Copy link
Member

Hi @pradeepbavirisetty , can you share a small project that reproduces the issue?

@pradeepbavirisetty
Copy link
Author

Hi @MikeEdgar thanks for your response here is the sample code `snippet.
helidon-quickstart-mp.zip

@bhanupriya123
Copy link

Hello @MikeEdgar , On behalf of @pradeepbavirisetty , we would like to know when this fix will be available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants