Skip to content

Commit

Permalink
(fix): updated cloudstream googlepubsub example and added missing bin…
Browse files Browse the repository at this point in the history
…ding from auto-configuration
  • Loading branch information
SheheryarAamir committed Apr 1, 2024
1 parent f6df2d1 commit aeadb9c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package io.github.springwolf.bindings.googlepubsub.configuration;

import io.github.springwolf.bindings.googlepubsub.scanners.channels.GooglePubSubChannelBindingProcessor;
import io.github.springwolf.bindings.googlepubsub.scanners.messages.GooglePubSubMessageBindingProcessor;
import io.github.springwolf.core.asyncapi.scanners.bindings.BindingProcessorPriority;
import io.github.springwolf.core.configuration.properties.SpringwolfConfigConstants;
import org.springframework.boot.autoconfigure.AutoConfiguration;
Expand All @@ -23,4 +24,11 @@ public class SpringwolfGooglePubSubBindingAutoConfiguration {
public GooglePubSubChannelBindingProcessor googlePubSubChannelBindingProcessor() {
return new GooglePubSubChannelBindingProcessor();
}

@Bean
@Order(value = BindingProcessorPriority.PROTOCOL_BINDING)
@ConditionalOnMissingBean
public GooglePubSubMessageBindingProcessor googlePubSubMessageBindingProcessor() {
return new GooglePubSubMessageBindingProcessor();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,12 @@
"name": "io.github.springwolf.examples.cloudstream.dtos.GooglePubSubPayloadDto",
"title": "GooglePubSubPayloadDto",
"bindings": {
"kafka": { }
"googlepubsub": {
"schema": {
"name": "project/test"
},
"bindingVersion": "0.2.0"
}
}
}
}
Expand Down

0 comments on commit aeadb9c

Please sign in to comment.