Skip to content

Collection properties are generated as object instead of array in JSON schema #152

@alexmg

Description

@alexmg

The CRD code generator does not cater for a wide range of enumerable types. In the generated JSON Schema these unsupported collection properties have a type of object instead of array which breaks validation when posting resources. It would be ideal for the following additional types to be supported:

  • List<T>, IList<T> and IReadyOnlyList<T>
  • Collection<T>, ICollection<T> and IReadyOnlyCollection<T>
  • HashSet<T>, ISet<T> and IReadOnlySet<T>
  • Types derived from List<T> and Collection<T>

These could all be detected by targeting IEnumerable<T> based interfaces on the type.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions