swagger-typescript-api
swagger-typescript-api copied to clipboard
feat: add support of objects in query params
[!NOTE] Enhances query serialization to handle objects and arrays using bracketed keys (key[index]/key[subkey]) in
fetch-http-client.ejs.
- HTTP Client Template (
templates/base/http-clients/fetch-http-client.ejs):
- Query serialization:
addArrayQueryParam: now serializes arrays askey[index]=valueand objects viaObject.entries, emittingkey[subkey]=value.toQueryString: treats both objects and arrays as complex params, delegating toaddArrayQueryParam; primitives useaddQueryParam.Written by Cursor Bugbot for commit a8851f76f57fc830888b5920d7eda0cc1896b11b. This will update automatically on new commits. Configure here.