forked from ballerina-platform/asyncapi-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ballerina-platform#6 from thushalya/master
Add changes to asyncapi-to-ballerina after changing into RC-3 version
- Loading branch information
Showing
18 changed files
with
260 additions
and
123 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
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
31 changes: 31 additions & 0 deletions
31
...src/main/java/io/ballerina/asyncapi/core/generators/asyncspec/model/BalBooleanSchema.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,31 @@ | ||
package io.ballerina.asyncapi.core.generators.asyncspec.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import io.apicurio.datamodels.models.union.BooleanUnionValueImpl; | ||
|
||
/** | ||
* In Apicurio data model ,they are using BooleanSchemaUnion but If use this as they given then we can't get the output. | ||
* | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
public class BalBooleanSchema extends BooleanUnionValueImpl { | ||
|
||
public BalBooleanSchema(Boolean value) { | ||
super(value); | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public boolean isBoolean() { | ||
return true; | ||
} | ||
|
||
@JsonIgnore | ||
@Override | ||
public Boolean getValue() { | ||
return true; | ||
} | ||
|
||
|
||
} |
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.