diff --git a/docs/src/pages/reference/configuration/output.mdx b/docs/src/pages/reference/configuration/output.mdx index 0991415bb..e7a6f39a8 100644 --- a/docs/src/pages/reference/configuration/output.mdx +++ b/docs/src/pages/reference/configuration/output.mdx @@ -1003,15 +1003,6 @@ Default: `true` When using `fetch` for `client` or `httpClient`, the Fetch response type includes HTTP status for easier processing by the application. To return a defined return type instead of an automatically generated return type, set this value to `false`. -#### explode - -Type: `Boolean`. -Default: `true` - -By default, the Fetch client follows the OpenAPI specification for query parameter explode behavior. This means that query parameters will be exploded unless explicitly set to `false` in the OpenAPI schema. - -To maintain backward compatibility with the previous behavior (where only parameters with `explode: true` are exploded), set this value to `false`. - ##### forceSuccessResponse Type: `Boolean`. diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 0db38cf9f..710081de1 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -629,14 +629,12 @@ export type SwrOptions = { export type NormalizedFetchOptions = { includeHttpResponseReturnType: boolean; forceSuccessResponse: boolean; - explode: boolean; jsonReviver?: Mutator; }; export type FetchOptions = { includeHttpResponseReturnType?: boolean; forceSuccessResponse?: boolean; - explode?: boolean; jsonReviver?: Mutator; }; diff --git a/packages/fetch/src/index.ts b/packages/fetch/src/index.ts index 678b3b947..1384ae728 100644 --- a/packages/fetch/src/index.ts +++ b/packages/fetch/src/index.ts @@ -65,9 +65,7 @@ export const generateRequestFunction = ( const schemaObject = schema.schema as SchemaObject; return ( - schema.in === 'query' && - schemaObject.type === 'array' && - (schema.explode || override.fetch.explode) + schema.in === 'query' && schemaObject.type === 'array' && schema.explode ); }); diff --git a/packages/orval/src/utils/options.ts b/packages/orval/src/utils/options.ts index cd47aa036..ad559e480 100644 --- a/packages/orval/src/utils/options.ts +++ b/packages/orval/src/utils/options.ts @@ -354,7 +354,6 @@ export const normalizeOptions = async ( true, forceSuccessResponse: outputOptions.override?.fetch?.forceSuccessResponse ?? false, - explode: outputOptions.override?.fetch?.explode ?? true, ...outputOptions.override?.fetch, }, useDates: outputOptions.override?.useDates || false,