Skip to content

Commit

Permalink
fix: Move property check to marker configuration (#54)
Browse files Browse the repository at this point in the history
fix - Move property check to marker configuration
  • Loading branch information
lorenzsimon authored Apr 11, 2023
1 parent 28ef8fd commit 77cdd98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ internal open class AsyncApiEmbeddedScriptAutoConfiguration {
}

@Configuration
@ConditionalOnProperty(name = ["asyncapi.enabled"], havingValue = "true", matchIfMissing = true)
internal open class AsyncApiMarkerConfiguration {

@Bean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package org.openfolder.kotlinasyncapi.springweb

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.context.annotation.Import

@Target(AnnotationTarget.CLASS)
@MustBeDocumented
@Import(AsyncApiMarkerConfiguration::class)
@ConditionalOnProperty(name = ["asyncapi.enabled"], havingValue = "true", matchIfMissing = true)
annotation class EnableAsyncApi

0 comments on commit 77cdd98

Please sign in to comment.