0

How do I create sample value for a list of strings in Swagger.

It works for all fields except the one with a list of strings.

This is what I have :

public class Request
{
    /// <example>TEST123</example>
    public string Name { get; set; }

    /// <example>["4050001"]</example>
    public IEnumerable<string> Numbers { get; set; }
}

Swagger sample value :

{
    "name": "TEST123",
    "numbers": [
        "string"
    ]  
}

What am I missing?

user7849697
  • 503
  • 1
  • 8
  • 19

0 Answers0