go: dates are mistreated as strings #2659
Labels
bug
This issue is a bug.
compliance
Missing or broken compliance tests
effort/medium
Medium work item – a couple days of effort
language/go
Regarding GoLang bindings
p1
Milestone
🐛 Bug Report
Golang generated code results in
Date
arguments treated as plain strings.Affected Languages
TypeScript
orJavascript
Python
Java
C#
,F#
, ...)General Information
What is the problem?
Consider the following TS code:
jsii/packages/jsii-calc/lib/compliance.ts
Lines 118 to 124 in 1883362
The resulting Golang code would be:
Which causes a deserialization error:
test panicked: "Expected Date, got \"12345\""
Stemmed from here:
jsii/packages/@jsii/kernel/lib/serialization.ts
Lines 153 to 155 in 1883362
This seems to be a known issue, as evident here:
jsii/packages/jsii-pacmak/lib/targets/go/types/go-type-reference.ts
Lines 15 to 16 in 1883362
Verbose Log
The text was updated successfully, but these errors were encountered: