Skip to content

C# Renderer with --features just-types doesn't include required usings. #2523

Closed
@gregmarr

Description

@gregmarr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#C# Outputbuggood first issueNot necessarily easy, but doesn't require deep quicktype knowledgerendering

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions