-
Notifications
You must be signed in to change notification settings - Fork 758
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
Add name for readonly records in config schema generation #41914
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #41914 +/- ##
============================================
- Coverage 76.69% 76.69% -0.01%
- Complexity 52904 52976 +72
============================================
Files 2881 2883 +2
Lines 199397 199727 +330
Branches 25929 25980 +51
============================================
+ Hits 152932 153185 +253
- Misses 38016 38078 +62
- Partials 8449 8464 +15 ☔ View full report in Codecov by Sentry. |
.../ballerina-lang/src/main/java/io/ballerina/projects/internal/configschema/TypeConverter.java
Outdated
Show resolved
Hide resolved
.../ballerina-lang/src/main/java/io/ballerina/projects/internal/configschema/TypeConverter.java
Outdated
Show resolved
Hide resolved
typeNode.addProperty("name", bType.toString().trim()); | ||
// The tsymbol name is empty for anon intersection type created due to inferred readonly | ||
if (!intersectionType.tsymbol.name.value.isEmpty()) { | ||
typeNode.addProperty("name", intersectionType.tsymbol.toString().trim()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be tsymbol.name.value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tsymbol.name.value
doesn't return the fully qualified name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM.
Purpose
Fix failure when Config Generation fails to add the name of Readonly Records to the Config Schema.
Fixes #41906
Approach
Samples
Remarks
Check List