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
The deepObject property is required for Swagger.UI to work correctly.
This nicely produces the typescript method definition of filter: { [key: string]: string; } | undefined
However, the code to parse this query parameter is just defined as
url_ += "filter=" + encodeURIComponent("" + filter) + "&"
This is not how a dictionary for a query parameter. At least not a deepObject type. I think the following code would be required in Client.RequestUrl.liquid to replicate the desired approach
I am raising this as it follow on from #3529, which I have determined in slightly different.
I'm trying to define a swagger file that will allow for URLs for in the following format
?filter[aField]=value&filter[otherField]=otherValue
I have worked out that the following swagger definition allows Swagger.UI to process the inputs properly, and create the correct URL
The deepObject property is required for Swagger.UI to work correctly.
This nicely produces the typescript method definition of
filter: { [key: string]: string; } | undefined
However, the code to parse this query parameter is just defined as
url_ += "filter=" + encodeURIComponent("" + filter) + "&"
This is not how a dictionary for a query parameter. At least not a deepObject type. I think the following code would be required in Client.RequestUrl.liquid to replicate the desired approach
The text was updated successfully, but these errors were encountered: