Skip to content

Conversation

@mnahkies
Copy link
Owner

@mnahkies mnahkies commented Nov 2, 2025

respect the style and explode modifiers on in: query parameters.

this is required to generate working clients for https://github.com/typesense/typesense-api-spec for example, as it defines the query parameters as a single object that should be "exploded" (eg: flattened) to multiple parameters.

removes the qs dependency in favor of our own parsing / serialization based on the style + explode modifiers.

in addition to the e2e tests in this repository, I've tested the generated clients e2e against a typesense server, which previously didn't work.

@mnahkies mnahkies force-pushed the mn/fix/query-param-serialization branch from ddea1a2 to 48cb0e4 Compare November 15, 2025 14:50
mnahkies added a commit that referenced this pull request Nov 29, 2025
will make it easier to complete #381 by avoiding irrelevant `style`
values needing to be considered / filtered.
@mnahkies mnahkies force-pushed the mn/fix/query-param-serialization branch 2 times, most recently from 4369e77 to 0ab231b Compare December 20, 2025 14:36
const firstOneOf = schema.oneOf[0]

if (firstOneOf) {
logger.error(
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better to just throw an error?

mnahkies added a commit that referenced this pull request Dec 22, 2025
introduces a new `typescript-common-runtime` package, and refactors the
existing runtime packages to move common functionality into it.

this will give us a better place to put code such as the form data
request body parsing, and upcoming query string parsing (#381)

there are a couple of minor breaking changes:
- Drop deprecated exports (not used in regenerated code)
- Wrap response validation errors properly when using `joi`

BREAKING CHANGE: deprecated exports removed, regenerate using the latest
cli to avoid issues
@mnahkies mnahkies force-pushed the mn/fix/query-param-serialization branch 2 times, most recently from 6a7ca97 to b30c1cf Compare December 22, 2025 12:08
@mnahkies mnahkies force-pushed the mn/fix/query-param-serialization branch from b30c1cf to 5b1bce5 Compare December 22, 2025 13:12
@mnahkies mnahkies marked this pull request as ready for review December 22, 2025 13:33
@mnahkies mnahkies changed the title fix!: query param serialization fix!: query param serialization/parsing Dec 22, 2025
@mnahkies mnahkies merged commit e68b69f into main Dec 22, 2025
22 checks passed
@mnahkies mnahkies deleted the mn/fix/query-param-serialization branch December 22, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants