Arrays in Input to dynamic API
See original GitHub issueHi there, I Have this setup:
Dynamic API/Service:
GetEventsForOwnerCalendarOutput GetEventsFor(GetEventsForInput input)
Input Dto
public class GetEventsForInput
{
public List<ExternalCalendarInput> Calendars { get; set; }
public DateTime Start { get; internal set; }
}
But swagger displays it like this:
Which causes NSwag to generate a function which does not use the ExternalCalendarInput
for the array type.
Is this a bug or limitation?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Dynamically using array values as API POST parameters in ...
Dynamically using array values as API POST parameters in Powershell. I've redacted the URL endpoint, and the right tenant name, as this is...
Read more >Fill inn dynamically from array to body api - Questions
In my first project with N8N I am at the final step. I have a json response from a licensedistributor. The json response...
Read more >Posting an array to Post/Put API with FromForm parameter
Hello, Currently I'm building a Form input which the values will be sent to a Post and Put API. Now, the problem is,...
Read more >Input Rule for a Dynamic Array
An input rule for a dynamic array determines the data type of the array elements. You can select one or more data types....
Read more >Dynamic Array as an input field to a service - Adabas-Natural
I successfully developed a subprogram with dynamic array as one of the input fields, tested in DDL Tester. Can't get syntax to pass...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, it seems all
Get
requests don’t use the DTO. So that is why it is not wrapped into a DTO.I think that get requests cannot have deep objects in an array… a limitation of WEBAPI perhaps…
I am not swagger expert 😦