Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies = [
[[package]]
org = "ballerina"
name = "avro"
version = "1.1.0"
version = "1.1.1"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
Expand Down
23 changes: 23 additions & 0 deletions ballerina/tests/tests.bal
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,29 @@ public function testWithRecords() returns error? {
test:assertEquals(getStudent, student);
}

@test:Config {}
public function testWithRecordsBindingToAnydata() returns error? {
string schema = string `
{
"namespace": "example.avro",
"type": "record",
"name": "Student",
"fields": [
{"name": "name", "type": "string"},
{"name": "subject", "type": "string"}
]
}`;

Student student = {
name: "John",
subject: "Math"
};

byte[] bytes = check serialize(regsitry, schema, student, "subject-1");
anydata getStudent = check deserialize(regsitry, bytes);
test:assertEquals(getStudent.cloneWithType(Student), student);
}

@test:Config {}
public function testSerDesWithInteger() returns error? {
string schema = string `
Expand Down
2 changes: 1 addition & 1 deletion build-config/resources/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export=["confluent.cavroserdes"]
keywords = ["confluent", "schema_registry", "avro", "serdes"]
repository = "https://github.com/ballerina-platform/module-ballerinax-confluent.cavroserdes"
license = ["Apache-2.0"]
distribution = "2201.11.0-20241117-133400-a3054b77"
distribution = "2201.11.0"

[build-options]
observabilityIncluded = true
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ commonConfigVersion=4.1.0
commonUtilsVersion=5.3.0

stdlibIoVersion=1.7.0
stdlibAvroVersion=1.1.0
stdlibAvroVersion=1.1.1
stdlibHttpVersion=2.13.2
cRegistryVersion=0.3.0
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 11 additions & 9 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 12 additions & 10 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading