-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Replaced usage of jAsyncAPI by the new springwolf-asyncapi modu…
…le (#523) * feat: Replaced usage of jAsyncAPI by the new springwolf-asyncapi module We migrate from jAsyncAPI, with support for AsyncAPI v2, to the new SpringWolf-AsyncAPI module, which supports AsyncAPI v3. This PR is only a first step. Plenty of tests are still not working and others are partially commented. Please take a look to the multiple FIXMEs in the code
- Loading branch information
Showing
118 changed files
with
1,618 additions
and
1,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lf/addons/generic_binding/annotation/processor/AsyncGenericOperationBindingProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...pi/src/main/java/io/github/stavshamir/springwolf/asyncapi/v3/model/schema/SchemaType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package io.github.stavshamir.springwolf.asyncapi.v3.model.schema; | ||
|
||
public class SchemaType { | ||
public static final String NULL = "null"; | ||
public static final String BOOLEAN = "boolean"; | ||
public static final String OBJECT = "object"; | ||
public static final String ARRAY = "array"; | ||
public static final String NUMBER = "number"; | ||
public static final String STRING = "string"; | ||
public static final String INTEGER = "integer"; | ||
|
||
private SchemaType() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
.../main/java/io/github/stavshamir/springwolf/asyncapi/scanners/bindings/BindingFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package io.github.stavshamir.springwolf.asyncapi.scanners.bindings; | ||
|
||
import com.asyncapi.v2.binding.channel.ChannelBinding; | ||
import com.asyncapi.v2.binding.message.MessageBinding; | ||
import com.asyncapi.v2.binding.operation.OperationBinding; | ||
import io.github.stavshamir.springwolf.asyncapi.v3.bindings.ChannelBinding; | ||
import io.github.stavshamir.springwolf.asyncapi.v3.bindings.MessageBinding; | ||
import io.github.stavshamir.springwolf.asyncapi.v3.bindings.OperationBinding; | ||
|
||
import java.util.Map; | ||
|
||
public interface BindingFactory<T> { | ||
String getChannelName(T annotation); | ||
|
||
Map<String, ? extends ChannelBinding> buildChannelBinding(T annotation); | ||
Map<String, ChannelBinding> buildChannelBinding(T annotation); | ||
|
||
Map<String, ? extends OperationBinding> buildOperationBinding(T annotation); | ||
Map<String, OperationBinding> buildOperationBinding(T annotation); | ||
|
||
Map<String, ? extends MessageBinding> buildMessageBinding(T annotation); | ||
Map<String, MessageBinding> buildMessageBinding(T annotation); | ||
} |
2 changes: 1 addition & 1 deletion
2
...a/io/github/stavshamir/springwolf/asyncapi/scanners/bindings/ProcessedMessageBinding.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...io/github/stavshamir/springwolf/asyncapi/scanners/bindings/ProcessedOperationBinding.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.