SwaggerProvider
SwaggerProvider copied to clipboard
Support representing arrays as F# lists
At the moment OpenApi arrays are represented as .Net arrays in the generated types. Is there any chance there could be a flag added to optionally use F# lists instead? Obviously arrays are best for C# interop but if you're only consuming from F# then lists have the benefits of being non-nullable, immutable, O(1)-append etc. Generally they're more idiomatic in F# so if your client app uses lists ubiquitously for collections then you don't have to add glue code around the generated types to convert back and forth all the time.
Or as ImmutableArray