Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support union type for XMl data module #43

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
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
Loading