swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

feat: add support of objects in query params

Open aleksej-axiology opened this issue 9 months ago • 3 comments

[!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 as key[index]=value and objects via Object.entries, emitting key[subkey]=value.
      • toQueryString: treats both objects and arrays as complex params, delegating to addArrayQueryParam; primitives use addQueryParam.

Written by Cursor Bugbot for commit a8851f76f57fc830888b5920d7eda0cc1896b11b. This will update automatically on new commits. Configure here.

aleksej-axiology avatar Mar 03 '25 18:03 aleksej-axiology