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
while according to the specification ("sparse Indicates that lists and maps MAY contain null values. The sparse trait has no effect on map keys; map keys are never allowed to be null."), it should rather generate the following:
Hi,
I'd like to report a bug in the
smithy-typescript-codegen
package.@sparse
traits added to the Map shapes (https://smithy.io/2.0/spec/type-refinement-traits.html#sparse-trait) are not reflected by TypeScript Records generated bysmithy-typescript-codegen
.For instance, the following definition:
results in the following TypeScript code:
while according to the specification ("sparse Indicates that lists and maps MAY contain null values. The sparse trait has no effect on map keys; map keys are never allowed to be null."), it should rather generate the following:
Tested with latest version: 0.19.0
Cheers,
Milosz
The text was updated successfully, but these errors were encountered: