Skip to content

Commit

Permalink
Merge pull request #37553 from phillip-kruger/openapi-native-filter
Browse files Browse the repository at this point in the history
Register OpenAPI custom filters for reflection
  • Loading branch information
gsmet authored Dec 7, 2023
2 parents b5ac615 + 3f87806 commit 317e667
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void registerAutoSecurityFilter(BuildProducer<SyntheticBeanBuildItem> syntheticB
@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void registerAnnotatedUserDefinedRuntimeFilters(BuildProducer<SyntheticBeanBuildItem> syntheticBeans,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
OpenApiFilteredIndexViewBuildItem apiFilteredIndexViewBuildItem,
OpenApiRecorder recorder) {
Config config = ConfigProvider.getConfig();
Expand All @@ -256,6 +257,7 @@ void registerAnnotatedUserDefinedRuntimeFilters(BuildProducer<SyntheticBeanBuild
.supplier(recorder.createUserDefinedRuntimeFilters(userDefinedRuntimeFilters))
.done());

reflectiveClass.produce(ReflectiveClassBuildItem.builder(userDefinedRuntimeFilters.toArray(new String[] {})).build());
}

@BuildStep
Expand Down

0 comments on commit 317e667

Please sign in to comment.