You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i try to generate a service method which uses array query params, the parameter is correctly processed as an array (a foreach is applied to the parameter) but the parameter is not typed as an array.
Here is the swagger json spec for the api endpoint, we can see that the query param "sort" is of type array:
I'm trying to do something similar, in order get URLs for the format ?filter[aField]=value&filter[otherField]=otherValue
I have set up the schema in the following format. Note, the top level object and deepObject properties are required so that Swagger.UI interprets these options as well. Using array at the top level doesn't work
Setting collectionFormat makes the generator realise it's an array, and produces the foreach specified above. However, I think the code in Client.RequestUrl.liquid needs to actually do something like
Hello,
I have an issue with my ts client generation.
When i try to generate a service method which uses array query params, the parameter is correctly processed as an array (a foreach is applied to the parameter) but the parameter is not typed as an array.
Here is the swagger json spec for the api endpoint, we can see that the query param "sort" is of type array:
Here is the generated code, as you can see, foreach is applied to the parameter "sort" but it's not typed as array,:
The text was updated successfully, but these errors were encountered: