You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLI, npm, or app.quicktype.io: both
Version: 23.0.170
Description
In DartRenderer.ts#L233, null/undefined value of a list-type property will fall back to an empty array.
However, some APIs, including ours, distinguish between null and [].
Issue Type
Context (Environment, Version, Language)
Input Format: JSON Schema
Output Language: Dart
CLI, npm, or app.quicktype.io: both
Version: 23.0.170
Description
In DartRenderer.ts#L233, null/undefined value of a list-type property will fall back to an empty array.
However, some APIs, including ours, distinguish between
null
and[]
.e.g. following is the simplified pseudocode.
This causes problems for the following logic:
Input Data
Expected Behaviour / Output
Current Behaviour / Output
Steps to Reproduce
Source type
toJSON Schema
Null Safety
is turned onPossible Solution
quicktype/packages/quicktype-core/src/language/Dart/DartRenderer.ts
Line 233 in be6a937
We understand that this solution may impact existing APIs.
So we want to explore if there is a better alternative.
The text was updated successfully, but these errors were encountered: