Skip to content

Commit

Permalink
Replace config root by config mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Aug 20, 2024
1 parent 3f9902f commit b549177
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
import io.quarkiverse.asyncapi.annotation.scanner.AsyncApiFilter;
import io.quarkus.runtime.annotations.ConfigDocMapKey;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;

@ConfigRoot(name = "asyncapi.annotation.scanner", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
@ConfigMapping(prefix = "asyncapi.annotation.scanner")
public class AsyncApiRuntimeConfig {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;

@ConfigRoot(name = AsyncApiConfigGroup.CONFIG_PREFIX, phase = ConfigPhase.BUILD_TIME)
@ConfigMapping(prefix = AsyncApiConfigGroup.CONFIG_PREFIX)
public class AsyncApiConfigGroup {

static final String CONFIG_PREFIX = "asyncapi-generator.codegen";
Expand Down

0 comments on commit b549177

Please sign in to comment.