Skip to content

Commit

Permalink
Merge pull request #43 from SasinduDilshara/support_union
Browse files Browse the repository at this point in the history
Support union type for XMl data module
  • Loading branch information
gimantha authored Oct 30, 2024
2 parents 0a09d03 + 4c5f574 commit 048373b
Show file tree
Hide file tree
Showing 19 changed files with 1,672 additions and 264 deletions.
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
# See: https://help.github.com/articles/about-codeowners/

# These owners will be the default owners for everything in the repo.
* @gimantha hasithaa
* @gimantha @SasinduDilshara

8 changes: 4 additions & 4 deletions ballerina/tests/fromXml_test.bal
Original file line number Diff line number Diff line change
Expand Up @@ -3340,13 +3340,13 @@ function testUnsupportedTypeNegative() {
`;
record {|
record {|string a;|}|record {|string b;|} A;
|}|error err2 = parseAsType(xmlVal2);
test:assertEquals((<error>err2).message(), "unsupported input type");
|}|error val = parseAsType(xmlVal2);
test:assertEquals(val, {A: {a: "1"}});

record {|
record {|string a;|}? A;
|}|error err3 = parseAsType(xmlVal2);
test:assertEquals((<error>err3).message(), "unsupported input type");
|}|error val2 = parseAsType(xmlVal2);
test:assertEquals(val2, {A: {a: "1"}});
}

@Namespace {
Expand Down
Loading

0 comments on commit 048373b

Please sign in to comment.