glideapps / quicktype

Generate types and converters from JSON, Schema, and GraphQL

Home Page:https://app.quicktype.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C# Renderer with `--features just-types` doesn't include required `using`s.

gregmarr opened this issue · comments

If you run the C# renderer with --features just-types --array-type list then it creates List<T> properties, but doesn't add the required using System.Collections.Generic;. It also happens without the --array-type list if a Dictionary<K,V> is generated as a property.

This is due to the checks here, with FIXMEs from 6 years ago pointing out this exact bug.

// FIXME: We need System.Collections.Generic whenever we have maps or use List.

// FIXME: We need System.Collections.Generic whenever we have maps or use List.