'How to send form-encoded List<long> from SwaggerUI?
I'm getting 400 Bad Request on sending List<long>
from SwaggerUI to .net application
Response : {"statusCode":400,"message":["The value '"1","2","3"' is not valid."]}
Payload
Modal used by Swagger
public class DataArgs {
public List<string> strVar { get; set; }
public List<long> longVar { get; set; }
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|