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 finite types for 1.0.x #57

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
dd626d8
[Gradle Release Plugin] - new version commit: 'v1.0.1-SNAPSHOT'.
Aug 20, 2024
b049daa
[Automated] Update the native jar versions
SasinduDilshara Aug 20, 2024
b251984
Fix CCE in arrays with refered types
SasinduDilshara Aug 20, 2024
dc89791
Merge pull request #42 from SasinduDilshara/fix_6890
SasinduDilshara Sep 5, 2024
a15b31a
Merge branch 'main' into release-1.0.0
NipunaRanasinghe Sep 6, 2024
be96751
Merge pull request #41 from ballerina-platform/release-1.0.0
SasinduDilshara Sep 6, 2024
7ed1432
Add changes for support union
SasinduDilshara Aug 21, 2024
1144ac1
Add initial tests for union types
SasinduDilshara Aug 25, 2024
8c627e0
[Automated] Update the native jar versions
SasinduDilshara Aug 25, 2024
44b3ed2
[Automated] Update the native jar versions
SasinduDilshara Aug 25, 2024
1ca2d9c
Add initial implement for xml str union types
SasinduDilshara Aug 26, 2024
1fed636
Add union implementation for parseString API
SasinduDilshara Aug 27, 2024
46d0f1c
Add tests for union type implementation
SasinduDilshara Aug 27, 2024
cb3292e
[Automated] Update the native jar versions
SasinduDilshara Aug 27, 2024
bb05e17
[Automated] Update the native jar versions
SasinduDilshara Aug 27, 2024
ec41a1a
Refactor compiler plugin tests
SasinduDilshara Aug 27, 2024
8ce8ef9
Remove unused functions in compiler plugin module
SasinduDilshara Aug 27, 2024
e26e66d
Add negative tests for union types
SasinduDilshara Aug 28, 2024
161b66c
[Automated] Update the native jar versions
SasinduDilshara Aug 28, 2024
e0f2437
Updatre code owner file and refactor errors
SasinduDilshara Sep 4, 2024
a57880a
update string union tests with relevent issue links
SasinduDilshara Sep 4, 2024
76f370b
revert changes in dependencies.toml
SasinduDilshara Sep 6, 2024
a27a2fe
Update CODEOWNERS
anupama-pathirage Sep 24, 2024
552dd21
Merge pull request #46 from ballerina-platform/anupama-pathirage-patch-1
ThisaruGuruge Sep 24, 2024
9ac3c01
Delete stale bot
anupama-pathirage Sep 29, 2024
0a09d03
Merge pull request #47 from ballerina-platform/anupama-pathirage-patch-1
keizer619 Sep 30, 2024
4c5f574
Merge branch 'main' into support_union
gimantha Oct 11, 2024
048373b
Merge pull request #43 from SasinduDilshara/support_union
gimantha Oct 30, 2024
84fc972
Implement finite types for 1.0.0
SasinduDilshara Nov 27, 2024
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.
* @hasithaa @prakanth97
* @gimantha @SasinduDilshara

19 changes: 0 additions & 19 deletions .github/workflows/stale_check.yml

This file was deleted.

4 changes: 2 additions & 2 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ modules = [
[[package]]
org = "ballerina"
name = "io"
version = "1.6.1"
version = "1.6.2"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
Expand Down Expand Up @@ -116,7 +116,7 @@ modules = [
[[package]]
org = "ballerina"
name = "time"
version = "2.4.0"
version = "2.4.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down
31 changes: 27 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 Expand Up @@ -3585,3 +3585,26 @@ isolated function testDuplicateField() {
test:assertTrue(err4 is Error);
test:assertEquals((<Error> err4).message(), "duplicate field 'name'");
}

type Ports record {|
PortContent[] port;
|};

@Namespace {
prefix: "ns1",
uri: "example1.com"
}
type PortContent record {|
string \#content;
|};

@test:Config
isolated function testTypeRefArray() {
string s = string `
<A xmlns:ns1="example1.com" xmlns:ns2="example2.com">
<ns1:port>1</ns1:port>
<ns1:port>1</ns1:port>
</A>`;
Ports|error rec = parseString(s);
test:assertEquals(rec, {"port":[{"#content":"1"},{"#content":"1"}]});
}
Loading
Loading