type NewRecord record {
int a;
string b;
anydata c;
};
Describe your solution(s)
At the moment,
when there are null values, the relevant field is generated as anydata, why not use json?
the generated records are inclusive record typedescs, open by anydata. Can't we generate exclusive record typedescs with json as the rest descriptor instead?
This way, the generated record will also be a subtype of json.
type NewRecord record {|
int a;
string b;
json c;
json...;
|};
Description
$title.
Describe your problem(s)
For
we generate
Describe your solution(s)
At the moment,
null
values, the relevant field is generated asanydata
, why not usejson
?anydata
. Can't we generate exclusive record typedescs withjson
as the rest descriptor instead?This way, the generated record will also be a subtype of
json
.Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response