Skip to content

[http-server-csharp] Change how arrays types are treated and resolved #6372

@AlitzelMendez

Description

@AlitzelMendez

This is the final suggestion:

  • Simple types in Business Logic interface parameters will be typed as ICollection<T> by default
  • Simple types in Business Logic responses will be typed as IEnumerable<T>
  • Property types in models will be represented as IEnumerable<T>
  • In all these cases, the actual implementing type will be List<T>, so parameter and model property types are conditionally castable to a dynamic-length collection in the implementation.
  • The only exception will be collections with @uniqueItems which we should represent as ISet<T>

This is a split issue of: #5945 but this is only tracking the work of how arrays are resolved

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions