npm / orval
orval
What changed in orval 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
50 breaking23 security4 deprecations147 new APIs and options3 performance68 behavior and defaults21 tooling402 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initorval 8697 changes
Breaking changes 48
MCP types for defaulted path parameters no longer include the default value.
Closed empty object schemas are rendered as a never index signature.
Effect and Zod apply exactOptional to optional nullable properties.
Schemas are generated only when output has no target.
Object enums are rendered without an object shape.
Emits a sibling enum alone rather than chaining it onto an allOf $ref in generated Zod schemas.
Keys remain required when the parent or an allOf member requires them.
A false property renders as S.Never after dereference.
The generated server is migrated to MCP TypeScript SDK v2.
Self-referencing schemas are no longer aliased in single schemas mode.
Effect output drops non-primitive enum members and serializes values via toJsLiteral.
Non-primitive enum members are dropped, and serialization uses their value.
Path parameters are URL-encoded only when urlEncodeParameters is enabled; the option is also applied to the SWR axios request function.
Request bodies with format: date are serialized as calendar days.
Non-object responses are wrapped in structuredContent.
Stops bundling the mutator at the project's TypeScript target.
Refuses OpenAPI response keys that are not status codes.
Refuses a schema type that is not a known schema type.
Disambiguates mixed-type enum keys by adding type prefixes.
Mismatched const/enum values are rendered as literal types.
Every redirect hop is now checked against externalRefs.allow.
Mocks are no longer inlined by default in single and tags modes.
Multipart form-data binary fields use File instead of Blob.
The query option
shouldExportQueryKeyis renamed toshouldExportKeys.Zod output emits zod.never() for keys forbidden by not in oneOf/anyOf.
External $ref resolution now requires an explicit allow-list, preventing references from traversing directories unless configured.
The MCP integration no longer generates a Zod input schema for request bodies with this content type.
Removes isVue from @orval/core.
Zod v4 is now the default; you can change it to v3 with a config change.
Emits reusable schemas inline when operations exist and uses PascalCase identifiers.
Makes useInfiniteQueryParam strict.
Mock configuration now uses a generators array, allowing custom MSW and FAKER configs to be used individually.
Places body before accept in generated Angular multi-content overload signatures.
Non-GET Query helpers now wrap body types with the mutator BodyType<T>.
Non-GET query keys are now namespaced with the HTTP verb.
When tags are specified in input.filter, output includes only referenced schemas.
Mocks now emit ArrayBuffer for binary schemas upgraded to contentMediaType.
Fetch now parses response bodies based on content-type instead of always using JSON.parse.
Defaults dateTimeOptions to { offset: true } for RFC3339 date-time.
Prevents wildcard and parameterized content types from being treated as binary.
Generates literal true/false instead of boolean for boolean discriminated unions.
Faker.js is now an optional peer dependency instead of being inlined, so projects that need it may have to add their own version.
Reverts generating separate functions for each requestBody content type.
Generated functions no longer include the unused axiosInstance parameter when using a mutator.
Generated axios functions no longer include a generic type parameter.
This option is removed; output.schemas.type is now exclusive.
Combined types are now inlined by default; use this option to opt out.
Generated Zod schema names now use pascal-case.
Security 20
Escapes quotes in the broad-invalidation predicate.
Escapes schema names in emitted TypeScript string literal types.
Sanitizes OpenAPI document values before splicing them into generated code for zod, effect, and hono.
Numeric response schemas are sanitized.
Orval: Import-time RCE via array-items default -> zod module-level template literal
Orval: Import-time RCE via enum-typed default -> zod module-level template literal
Orval: Import-time RCE via header-parameter default -> zod module-level template literal
Orval: Import-time RCE via header parameter name -> computed-property-key injection in the zod client
Orval: Import-time RCE via query-parameter default -> zod module-level template literal
Orval: Import-time RCE via query parameter name -> computed-property-key injection in the zod cli
Orval: Import-time RCE via schema default -> zod module-level template literal
Orval: Import-time RCE via schema property name -> computed-property-key injection in the zod client
Orval: RCE via OpenAPI path -> unescaped request-URL template literal (backtick breakout)
Orval: RCE via servers[].url -> unescaped request-URL template literal (with getBaseUrlFromSpecification)
Spec-controlled strings are escaped in generated template literals and object keys.
Adds a socket dev check on Bun install.
Backslashes in enum and const values are escaped to prevent corruption.
JavaScript string escaping now also escapes /* and */ in comments, fixing CVE-2026-25141.
Escapes mocked values to address CVE-2026-24132.
Values in x-enum are now JavaScript-escaped to address CVE-2026-23947.
Deprecations 4
Warns when mutationInvalidates names an unknown operation.
Warns when an explicit infinite opt-in is silently suppressed.
Orval warns when mutationInvalidates references an operation emitted by Query.
Orval warns when optionsParamRequired is set with the fetch httpClient.
New APIs and options 146
Adds an opt-in for async inferred mutator operations.
Adds support for the dependentRequired schema keyword in Zod generation.
Adds a config option for custom string format types.
Supports httpClientInjection set to factory with the shared runtime.
Adds support for readonly arrays and tuples.
Adds schemas.type support for Valibot.
Adds support for the shared fetch runtime with httpClient fetch in query, SWR, and Pinia Colada clients.
The Fetch shared runtime supports an expanded set of fetch options.
Filter operations by operationId in input.filters.
Solid Query hooks accept accessors for their parameters.
Vue Query exposes a typed queryKey on query options.
Adds runtimeValidation.standardSchema.
schemaExtension accepts version-based refinement.
The mock index re-exports the titled MSW handler list.
Orval adds a Valibot client.
The Zod schema is passed to the mutator.
Adds a CLI option to detect outdated generated files without writing them.
Adds support for the time-local format in Zod generation.
The zod override adds a schemaExtension attribute and handling.
Adds defineFixture and typed fixture sets for defining mock fixtures.
Adds the override.fetch.runtimeImplementationStyle option.
Adds useBrandedTypes to emit named primitive schemas as branded types.
Adds opt-in typed fixtures for mocks.
Adds an Angular option to emit body-only signatures.
Adds an injection mode for fetch client factories.
Adds opt-in operation manifest output.
Adds override.mcp.cacheHints.
Adds support for Effect 4 schema output.
Adds workspaceExports to filter workspace index exports.
Infinite queries can page through a property in the request body.
Single-file TypeScript schemas are now supported.
Adds a faker importPath option for artifact groups.
Adds a schemasPath option for artifact groups.
Adds a mock override for projects using exactOptionalPropertyTypes.
Angular runtime validation parses JSON request bodies when configured.
Suspense query functions use the queryOptions helper.
Adds an exactMatch parameter for better cache control.
Query and SWR clients import the Zod schema used to validate the fetch request function.
Orval supports JSON5 package manifests.
A logger with log levels has been implemented.
Orval can generate Vue queries and mutations for Pinia Colada.
The Axios generator can generate status-discriminated responses.
Adds support for the date-time-local format in Zod output.
When set, filters operations by referenced schemas.
Exports operation URL helpers for use by developers.
Adds an override to inject a custom MCP tool handler.
Adds a flag to suppress the CLI banner and success messages.
Adds support for generating schemas in a single file.
Inline enum array item schemas are now exported from the zod model index.
Adds a compress option.
Adds an external schema naming strategy.
Adds an option to hold unresolved params.
Zod can generate opt-in companion input and output types for per-operation schemas.
Zod-backed clients support the
bothruntimeValidation strategy.Schema output paths can now be defined with rules.
Adds an option to prefix type and interface names derived from component schemas.
Exports a mutation key getter for each operation.
Adds schema property name conversion through namingConvention.properties.
Adds control for the query options mutator hook.
Mutation variables now have a named type.
Adds DI-based runtime base-URL composition for Angular.
Adds an option for generating response date deserializers and enabling runtime date deserialization for axios clients.
Adds support for HTTP QUERY operations.
Generates query key factories when a queryKey mutator is set.
Adds an option for serializable responses to serialize response headers.
Adds a global option to throw on errors.
Adds the exactOptional option for Zod and Effect generators.
Adds the tags-operations output mode.
Adds the tags-operations-split output mode.
Orval can generate Zod discriminatedUnion schemas.
Generated httpResource helpers expose request headers.
Generated httpResource helpers expose HttpContext.
An operationName override decouples generated type names from method names.
Mutators can now be specified using package paths.
Adds arrayFormat support for fetch query parameters.
Adds per-schema property overrides for mocks.
Adds paramsSerializer support for fetch query parameters.
Adds an option to organize schemas by tag.
Adds an option for tag split deduplication with barrel and shared type extraction.
Adds opt-in coercion of single-value array query parameters with coerce: ['array'].
Adds schemasImportPath to the faker generator.
Vue Query code generation now supports mutationInvalidates.
Mock output can be written to separate paths.
Adds a filter to keep all schemas under a tag filter.
Adds schemas.importPath for package import specifiers.
Adds support for the x-codegen-request-body-name extension.
Adds the arrayItems faker option for reusable array item mocks.
Zod schema generation now supports $dynamicRef and $dynamicAnchor.
Handlers gain error handling with isError and structuredContent.
Adds a way to specify how querykey is filtered.
Adds outputSchema, annotations, title, and description to registerTool.
Adds generateMeta to attach .meta() to component schemas in Zod v4.
Adds a schema generator for Effect.
Adds the nonNullable mock override option.
Adds an option to inject parameters in generated Zod schemas.
Adds an option to filter query keys.
Adds $dynamicAnchor support for OpenAPI 3.1.
Adds $dynamicRef support for OpenAPI 3.1.
Adds factoryMethods.
Adds generation of mocks from Faker schemas.
Adds an opt-in flag to generate reusable Zod schemas.
Returns the registered tools variable.
Adds a Bun configuration option to set a minimum age for installed packages.
Add literal param syntax for mutationInvalidates.
Add output.schemas: false to disable schema file generation.
Support usePrefetch for the angular-query client.
The MCP server can pass options: RequestInit to the handler.
Adds the orverride.mcp.server option.
Adds a flag to exit on warnings.
Adds a fetcher option to support custom fetch function injection.
Adds a unified formatter option.
Adds runtime baseUrl support with optional imports.
Adds an option for multi-content-type requestBody.
Adds an option to append .brand() to generated schemas.
Adds an option to generate type-safe getQueryData helpers.
Adds an option to generate type-safe setQueryData helpers.
Angular generation adds support for httpResource.
Adds defineTransformer to support type-safe transformers.
Adds Angular support for zod runtimeValidation, matching angular-query.
Adds a verbose CLI flag and reduces default log noise.
Adds support for invalidating queries in other files.
Adds support for stringFormat in Zod.
Angular queries gain Zod runtime validation.
The invalidates option gains a way to reset queries.
Orval generates separate functions for each requestBody content-type.
Adds a factory pattern for injecting the HTTP client dependency when using Axios.
Adds the useNullForOptional option for JSON:API compatibility.
Adds mutation reactivity and enables invalidations for Svelte Query.
Adds the operationSchemas option for separating schemas by operation.
Adds configuration-based invalidation.
Adds OpenAPI 3.1 contentMediaType support.
Adds OpenAPI 3.1 encoding.contentType support.
Adds support for enum property names.
Configuration files can now use ES Module imports.
Adds support for exclusive constraints in Zod schema generation.
The fetch client supports Zod schema type inference.
The fetch client can perform runtime validation with Zod schemas.
Adds an SWR option to control error type generation.
Configuration files can now use the mts file extension.
Adds an external option to mutator configuration.
The schema type option can select Zod schemas and is enabled for all clients.
Adds support for domain-specific headers in parser options.
Adds react-compiler support to React Query.
Adds Solid Query and SolidStart support.
Adds a SWR option for generating type-safe Suspense hooks.
Adds support for wildcard response status codes.
Performance 3
Generated files import only the mutators they use.
Each mutator is bundled once instead of once per operation.
JSON specs are parsed natively, and local-only specs skip bundling.
Behavior and default changes 67
Angular passes the Accept header to mutators on multi-content responses.
Effect keeps nested objects in defaults and applies defaults outside a Struct.
Effect generates schemas for +json, charset, and URL-encoded bodies.
Solid Start sends form bodies as FormData and URLSearchParams.
Generated retrieval clients reserve class method names per tag.
Angular httpResource helpers stay idle while an input signal holds undefined.
Angular skips unused observe option types when observeOverloads is false.
Query hooks include operation documentation on every overload.
Service method names are reserved per tag class.
Zod v4 generation emits zod.xor for oneOf schemas.
Aliases are carried on operations instead of module-level registries.
Angular types multi-content httpResource branches by dispatch.
Date form fields are serialized as ISO strings when useDates is enabled.
Mutator paths now resolve through tsconfig paths aliases.
Per-operation response mocks are written in tags-operations modes.
The specification description is emitted as McpServer instructions.
Missing response descriptions now receive a default instead of causing validation to fail.
Mock generators can be used with TypeScript single-file schemas.
Prefetching uses queryClient.query() with TanStack Query 5.102+.
The property naming convention is now applied to Zod schemas.
Passes the invalidation onSuccess to a mutationOptions mutator.
Binary faker mocks emit Blob values.
Date transforms traverse additionalProperties maps and are wired into fetch-based clients.
Merges external references into definitions for Swagger 2.0.
In single mode, schemas.path can name the schema file.
The aggregate mock helper now calls handler factories.
Zod object defaults with tuples or ref arrays are kept inline.
Allows the mutator return type and async behavior to be inferred.
Emits type-only imports in hono handlers and mcp http-client.
Server URL variables now support runtime expressions.
MCP tool call cancellation is propagated to downstream fetch requests.
Passes the Zod schema to a custom fetch response implementation.
Implements serialization for query parameters using style:deepObject.
Zod .meta() now carries title and deprecated values from const branches.
Generated Zod enums now include member names and descriptions.
Generated Zod Mini enum object literals now use as const.
Supports multiple useInfiniteQueryParam values.
Emits MSW handlers and faker factories as separate files in split modes.
Vue Query v5 generated reactive parameters now use MaybeRefOrGetter/toValue.
Orders handler body and query arguments, and propagates an optional body to the handler and tool schema.
Makes output.schemas.type optional and defaults it to typescript.
Generates requiredNullableParamKeys only when the relevant preserveRequire option is enabled.
Wraps OpenAPI examples in new Date() when useDates is enabled.
Faker schema factories now invoke functions supplied through override.mock.properties.
Tags-split MSW+faker output now emits strict mock types.
indexMockFiles is supported in split mode.
Mocks emit strict return types when required and nonNullable are both true.
Emits filterParams for untagged operations in the tags-split default file.
Applies the transformer before spec validation.
Emits nested array item constraints in generated JSDoc.
Bulk-updates cached data via setQueriesData.
Scopes skipErrorChecking to generated entry points when passing it to TypeDoc.
Emits plain SolidMutationOptions for the user-facing mutation parameter.
The queryOptions mutator is now applied to the generated invalidate function.
x-enumDescriptions now supports Map format.
x-enumNames now supports Map format.
OpenAPI validation failures are treated as warnings instead of errors.
Scope httpResource output by tag in tags/tags-split modes.
OAS validation now reports unused path parameters.
The Angular filter params helper is scoped by tag.
Supports multiple inputs and uses the first valid input.
Orval now tries to dereference $refs in external specs, improving handling of those specifications.
Mutation invalidation is enabled for React Query.
Makes inject query reactive.
Uses the Fetch API signature for SolidStart.
The fetch client supports variable expansion in headers configured through override.requestOptions.headers.
Zod schemas can now be generated when parameters have a type.
Tooling 19
MCP generation imports schema types for path parameters and every body member.
Valibot generation supports reusable component schemas.
The shared runtime is typed without DOM globals.
Helpers are named once in the tags-split barrel.
MSW resolver info is typed with path params and request body.
Typedoc dependencies are optional.
Declares optional peer dependencies for generated-code runtimes.
Zod generation now supports zod/mini.
Zod generation now emits response schemas for text/plain and 204/205 no-content responses.
MCP generation uses server.registerTool instead of server.tool.
TypeScript 6/7 is now supported.
Zod generation now produces a Body schema for multipart and urlencoded requests.
Multipart/form-data code generation now supports oneOf and anyOf.
Generates Zod schemas from OpenAPI specs containing only components.
Adds remeda as a listed dependency for mock functionality.
Orval can now format output using the Prettier installed in the project.
Adds Angular 21 support in workspace catalogs.
Adds an Angular Tanstack Query generator.
Orval upgrades its OpenAPI support to version 3.1.
Fixes and other changes 390
Handles array schemas whose items are true or absent in core and Zod.
Mock generation skips the override spread for closed empty object schemas.
Resolves $defs references inside external documents that have an $id.
The shared fetch runtime supports exact optional properties.
Supports exactOptionalPropertyTypes for optional form bodies in the fetch client.
Accepts interface-typed parameters in the Angular filterParams helper.
Valibot types readOnly arrays and recursive schemas like the models.
Merges request headers case-insensitively.
Skips block comments when deduplicating union types.
Zod generation now applies sibling allOf required properties through nested allOf schemas and reusable references.
Per-tag angular.provideIn is applied to generated service classes.
Core preserves component names for aliases to inline schemas.
Solid Start sends date-time query parameters represented as anyOf as ISO strings.
Generated integer mocks stay inside exclusive bounds.
The generated jsDoc filter output escapes */.
Fetch preserves inferred mutator types in the shared runtime.
MCP passes header parameters to the client when output.headers is enabled.
Zod preserves contextual types for defaults on reusable references.
Solid Start honors urlEncodeParameters for path parameters.
Optional form fields are guarded against null when useNullForOptional is enabled.
Dates are converted before a custom mutator validates the response.
The spec is imported before output.clean runs.
Fetch request functions accept the query signal when requestOptions is false.
Declares SecondParameter when an operation override uses it in query, SWR, and Axios output.
Hono generation works when the project uses TypeScript 7.
Keeps int64 as number in recursive schema type pins when useBigInt is enabled.
Constraint const names remain unique across component schemas.
Fetch serializes form-style object query parameters.
Angular matches JSON media types case-insensitively.
Core matches media types case-insensitively.
Fetch keeps scalar values of oneOf string/array query parameters.
Fetch joins pipeDelimited and spaceDelimited query arrays.
Angular skips request-body parsing for bodies with renamed keys.
Cross-file invalidation targets are skipped in the unknown-operation warning.
Generates zod.never() for false content schemas.
Merges nullable allOf members as their non-null shape in generated mocks.
Keeps nullable composed schemas with their own properties parseable in generated mocks.
Generated mocks pick one value per enum member of oneOf/anyOf array items.
Emits a scalar value for primitive allOf members in generated mocks.
Spec validation now accepts properties named $ref.
Filters request body media types before deduplicating by schema.
Writes Zod schemas for shared responses and request bodies.
Axios now honors urlEncodeParameters for path parameters.
Zod now honors additionalProperties on objects that also have properties.
Objects with properties remain open to additionalProperties.
The generated McpServer version now uses the specification's info.version.
Null property values pass through dereference.
Duplicate nullable component aliases are avoided.
The params object is now always passed to a custom client footer.
Recursive external schemas are added as components instead of being cut off.
Bodies and responses with reusable schemas resolve one level.
Resolves __REF_ sentinels in split-mode schema output.
Zod output applies a scalar parent type to an allOf member that does not have one.
Zod output keeps allOf-$ref object defaults with tuples inline.
Generated code qualifies Blob and File with globalThis when a component shadows them.
Zod output skips length, bound and pattern checks on a const.
Effect 4 output merges nullable and open allOf members.
Effect output renders a false schema as S.Never and makes it optional when it is not required.
Effect output skips length and pattern checks on a string const.
Duplicate operation names are disambiguated.
Empty objects are stringified as {}.
Nullable object parts in form data are stringified.
Primitive response schemas are validated.
Non-enum anyOf branches stay next to an annotated const.
Component names that differ only in casing remain distinct.
The infinite page parameter merge is guarded for exactOptionalPropertyTypes.
Inline schemas are imported in single-mode mock files.
The mutationInvalidates warning now accepts infinite query variants.
Broad mutationInvalidates now respects useOperationIdAsQueryKey.
schemaFileExtension is respected for TypeScript schema files.
Binary schemas remain Blob through @scalar/openapi-upgrader versions 0.2.17 and later.
Fixes nullable enum references in enum mode and untyped const mocks.
Preserves nullable $ref enum branches in core and mock handling.
Factory enum members are serialized from their value.
Multipart file parts are correctly typed in shared request body schemas.
The type is widened to account for TanStack releases where onMutateResult is optional.
Keeps the suspense queryFn out of the caller options spread.
Converts dates inside undiscriminated object unions.
MCP mutators are imported in http-client.ts instead of handlers.ts.
Stops treating a member name as a reference to an import.
Closes nullable and binary handling gaps in OAS 3.1 across core, mock, zod, and effect.
Angular's QueryClient is imported as a type unless dependency injection injects it.
Restores the schema type when schemas are left with only content keywords.
The body type is escaped when props are wrapped in BodyType<T>.
Fetch clients preserve error response types when using custom mutators.
The element schema passed to a fetch mutator is imported for inline array responses.
Deeply nested allOf values and allOf-wrapped array items are stringified correctly in form data.
Residual OAS 3.0 syntax is normalized after upgrade().
Required containers are guarded during response date deserialization.
The named schema file is imported in single Zod schema mode.
YAML merge keys are resolved when parsing the spec.
Writes item schemas for composed array responses.
Inline array responses are validated with Zod in fetch clients and angular-query.
Imports schemas from the schemas file when output.schemas is unset.
Preserves response status precedence.
The faker generator rejects or escapes enum type-cast names.
Object-typed const values are serialized from their value rather than their declared type.
Rejects a schemas path that names a file.
Imports the zod schema as a value when it is passed to a custom mutator.
Date defaults in generated factories are now escaped.
Numeric constraints are validated on the array and faker paths.
Response status keys are parsed before being emitted.
Per-operation schema resolution now includes schemas-dir imports in tags-operations-split.
Leaves discriminator properties wrapped in allOf refs untouched.
Escapes single quotes in content type media keys.
Types deepObjectEntries as string[] to satisfy strict TypeScript checking.
Escapes single quotes in generated route literals.
Fixes media type key injection.
Quotes mock enum members according to their own type.
Avoids mutating shared response imports during mock generation.
Preserves numeric literals in generated zod object defaults.
Escapes operationId in query and mutation mutator options.
Fixes tuple item consts, inline tuple defaults, and unescaped slashes in describe output.
Path parameters honor allowReserved when urlEncodeParameters is true.
Angular filterParams now serializes Date query parameters to ISO format.
Enum members are collected from nested anyOf and oneOf branches.
Form data keys are escaped in generated code.
When
indexFilesis false, schema import paths use the schema name.A mutation's invalidations are combined into a single queryClient call.
Nested object defaults are serialized as JSON in generated Zod output.
Spec parsing uses JSON_SCHEMA to prevent date coercion.
Structured schemas no longer have their binary path forced by preferredContentType.
Zod resolves $ref parameters before filtering them by location.
Responses use the schema's Zod output alias for their types.
Fetch responses validated at runtime are typed with the schema's Zod output alias.
MCP ToolAnnotations are now emitted accurately for each HTTP verb.
MSW now honors useExamples for property examples.
Makes forceSuccessResponse work without includeHttpResponseReturnType.
Makes Angular httpResource output compile under exactOptionalPropertyTypes.
Keeps the null branch when a nullable enum is spelled as anyOf.
Avoids repeating discriminator parent fields in each oneOf variant.
Serializes query parameters defined at the path-item level.
Avoids looking up tag buckets on Object.prototype.
Omits an undeclared text response branch in Angular output.
Handles unevaluatedProperties like additionalProperties.
The fetch getHeaders type now checks outside the DOM.
MCP now supports inline schemas.
Falsy parameter defaults are now treated as defaults.
Invalid $ref combined with nullable: true is normalized into anyOf.
Generated RegExp patterns with Unicode property escapes now include the u flag.
Fetch clients correctly spread Headers instances when merging custom headers.
Zod generation reports a misplaced boolean required instead of crashing.
Mock generation reports a misplaced boolean required instead of crashing.
Cleaning now prunes configured mock directories.
Angular multi-content text responses are typed as Observable<string>.
Metadata is preserved for oneOf const enums.
Zod output no longer emits duplicate parameter constants.
Generated solid-query output now compiles.
Generated solid-start output now compiles.
Url-encoded bodies now honor deepObject encoding.
Swagger 2.0 formData array parameters retain their items.
Generated documentation now honors the configured TypeDoc theme.
Mocks now emit an explicit Content-Type header for vendor media types.
Generated faker schema mocks are now valid.
Handles binary format.
Applies namingConvention to generated Hono handler filenames.
Keeps required status on constraint-only oneOf/anyOf branches.
Preserves an overridden operationName verbatim.
Recursive $ref mocks now terminate with type-valid values.
Preserves the bound-alias name through a ref hop.
Fixes conditional deployment to Cloudflare.
Zod generators infer types from const primitive values.
Fixes malformed requests generated for dotted path parameter names.
Keeps generated barrels idempotent across formatter runs.
Keeps integer enum+const type values as strings.
Zod generators enforce integer validation.
Safely collects nested allOf properties.
Operation parameters override path parameters.
Fetch generators infer the request options type from the mutator.
Resolves required keys through nested allOf $ref compositions.
Preserves required parent properties in allOf.
Avoids deleting the entire working directory when schemas has no path.
Angular clients send required nullable query params as an empty string when no paramsSerializer is configured.
Generated types no longer apply Required<Pick> to required keys missing from properties.
Mocks use exported element aliases for top-level array responses in arrayItems factories.
Mocks inline enum values when enumGenerationType is union.
Generated httpResource helpers remain idle when an optional request body is absent.
Generated multi-content-type resource factories read signals inside the factory.
Used-dependency detection matches only import aliases, preventing unrelated names from being treated as used dependencies.
Angular serializes object query parameters according to OpenAPI style and explode instead of dropping them.
Mocks generate tuple values for OpenAPI 3.1 prefixItems.
Required fields from constraint-only allOf overlays are now combined.
Fixes an issue when a barrel file re-exported itself.
Array query parameters now respect the OpenAPI default explode: true.
Orval now supports npm-aliased TypeScript versions.
Enum value imports are now registered from oneOf split mock helpers.
Generated HTTP verbs now include OPTIONS.
Hoisted sub-models are now emitted for recursive reusable schemas.
Restores Required<Pick> for allOf required fields that were lost after normalizeAllOfSchema.
Resolves inline $dynamicAnchor overrides in dynamic scope.
Keeps httpResource response imports type-only.
Ensures the schemas path uses a directory path in httpResource split mode.
Avoids mutation operation name shadowing.
Recovers schema-factory imports in single-mode mock writer.
Generalizes the tag-identity fix and fixes the same bug in hono.
Tightens faker schema mock types for enums, nested spreads, and binary.
Ensures resolveMockValue returns only one factory import per ref-property.
Uses getImportExtension across writers and emits .js suffixes in workspace barrel and mutator imports for NodeNext module resolution.
Handles nullable object schemas and per-import strict kinds in mocks.
Global query mutators resolve against the output workspace.
Attaches queryKey without spreading the React Query result.
Escapes schema default values when stringifying them.
Global Zod mutators resolve against the output workspace.
The arrayItems option now works with MSW-only mock configurations.
Schemas referenced via $ref inside $defs are now discovered when $dynamicAnchor is present.
Broad-invalidation keys now include baseUrl, preventing mutations from invalidating queries across different base URLs.
Generated properties use an unknown index signature and typed additionalProperties.
Bare-key property overrides are applied to nested objects.
Prevents stack overflow when generating mocks for cyclic allOf schemas.
Discriminator mapping entries whose target schema is absent are skipped.
External $ref values injected via an input transformer are resolved.
Under splitByContentType, MSW handler names use operationName.
Path parameters are kept out of mutation options URLs.
Named enums are extracted inside nullable nested objects and nullable object compositions.
Named mutator re-exports are supported.
Zod output now emits preprocess mutator imports for query, parameter, header, and body schemas, not only responses.
The queryKey is attached to the Solid result without mutating the store.
Newlines in $ref descriptions are escaped when generating reusable schemas.
Generated RegExp pattern literals avoid useless escapes.
Zod output generates a response schema for non-200 2xx responses such as 201 and 202.
Angular path parameters are URL-encoded when urlEncodeParameters is set.
Zod schema output now emits a PathParameters schema when useNamedParameters is enabled.
Zod generation applies required from a sibling allOf member to base properties.
Fixes discriminator aliases and missing parent properties in factory methods.
Fixes logger deduplication state leaking across instances.
Zod preprocessing reads the mutator's target key instead of always reading .response.
Preserves the original input as the cache key, fixing cache misses for uppercase inputs.
Generated mocks no longer double-wrap the null branch for required nullable scalars.
Fixes resolveDiscriminators in cycles.
Emits const declarations for single-item anyOf schemas.
The mutator parser now supports CallExpression initializers.
Fixes cross-schema $dynamicAnchor collisions involving circular $ref.
Deduplicates name collisions when generating reusable schemas.
Emits the HttpClient generic for JSON primitive responses.
Emits const declarations for single-item oneOf schemas.
Applies mock property overrides inside array items.
Emits recursive reusable schemas with full TypeScript types.
Resolves __REF__ sentinels in operation schema files.
Emits reusable schemas for sanitized component names.
Corrects inline reusable schema emission when imports are missing or definitions are dropped.
Prevents sibling variants from leaking into mocks inherited through allOf.
Breaks circular type aliases for variants that inherit discriminators through allOf.
Mocks emit boolean enum literals instead of random boolean values.
Fixes circular suffix matching and combines recursion in mocks.
Zod generation handles content types with a charset suffix.
Preserves a discriminator value when a oneOf parent declares the same property.
Supports the $dynamicAnchor fallback specified by JSON Schema.
Uses one-sided bounds when only minLength, maxLength, minItems, or maxItems is specified.
Generates a union for nullable compositions using type: null with allOf, oneOf, or anyOf.
Passes operationId and operationName to the queryOptions mutator.
Reads x-enum-varnames from the parameter level for primitive query enums.
Detects $ref in single-element allOf, oneOf, and anyOf array items.
Inlines the string type for $ref binary fields in x-www-form-urlencoded bodies.
Raw binary request bodies such as image/png are passed to fetch as the Blob itself.
Handles type arrays such as ["array","null"] in form-urlencoded serialization.
Pass the enabled option into queryOptions mutators.
Use a nullish fallback for infinite query page parameters.
Unref Vue infinite query parameters.
Properly handle multi-line descriptions in generated JSDoc.
Parse mutators with the latest ecmaVersion to support dynamic import.
Narrow string literals per value in object defaults generated by Zod.
Decode escaped JSON Pointer tokens in external refs, including ~0 tilde escapes.
Inline header schemas when a $ref points outside #/components/parameters.
Restore urlEncodeParameters support for the fetch client.
Fix a type error caused by coercing a date parameter to a string when useDates is enabled.
Treat binary fields in x-www-form-urlencoded bodies as strings.
Properly handle zod.generate options and use 2xx when a 200 response is unavailable.
Adds file extensions to imported files when using NodeNext module resolution.
Preserves object query parameters in generated Angular clients.
Restores cycle detection for oneOf and anyOf in mock generation.
Wraps request bodies when readonly properties come from nested schemas.
Inlines non-component references to avoid broken named imports.
Keeps non-relative mutator import paths in tags-split mode.
Honors a per-operation useMutation override for GET operations.
allOf intersection types are now parenthesized when used for array items.
Literal types are preserved in object defaults generated by Zod.
Angular generation no longer produces a compile error for binary response types.
Auto-generated enabled options now use a null check.
Error content types are now included in the fetch parse strategy.
Inlining recursive external references now breaks cycles.
The handler preamble is refreshed and import paths are fixed for the hono.handlers option.
The global override.query.useQuery setting now applies to non-GET verbs.
Const references in propertyNames are now resolved.
Enum references in propertyNames are now resolved.
Angular generation fixes PUT request bodies for multi-content responses.
Sorting now uses deterministic comparators.
Property-level examples are now applied after upgrading OpenAPI 3.0 specifications.
Generated types now include the missing import for $ref types used in additionalProperties.
The callback no longer includes the schemas path when that path was not written.
Enum generation with enumGenerationType: 'enum' no longer produces an empty import type statement.
Generated JSDoc is attached to the main function instead of the URL helper.
MSW paths escape colons with double backslashes.
Removed an unsound cast from HttpClient Zod validation.
Angular httpClient skips Content-Type for multipart/form-data; other integrations are not specified as affected.
Routes are emitted as a method chain to support type inference.
Fixed a TypeScript errors file split issue for Angular httpresource.
Fixed import propagation to MSW mocks for nullable anyOf $ref types.
Multipart JSON object parts are appended as plain strings.
Skips the MSW resolvedBody prelude when no ResponseMock is generated.
Fixed the order of the stringFormat call in generated Zod output.
Added zip to the binary application types list.
Fix missing baseUrl runtime imports in single mode without schemas.
Mock generation now handles boolean exclusiveMaximum values from OpenAPI 3.0 schemas.
Mock generation now handles boolean exclusiveMinimum values from OpenAPI 3.0 schemas.
Generated Hono handler files now include the Orval file header.
MSW mocks now use indexed access types for inline enum properties.
Fixes the naming convention used for MCP path parameters.
Fixes broken model imports in generated code.
Mock generation preserves object properties for nullable type arrays in OpenAPI 3.1.
Typed Record generation now supports propertyNames.const.
Includes query parameters in multi-content-type HTTP calls.
Strips const from a discriminator merged property.
Applies fileExtension to index files.
Includes fileExtension in schemas barrel import paths.
Uses a null literal in filterParams to fix a TypeScript error.
Detects isBlob from content type instead of the resolved type name.
Fixes mutationInvalidates code generation with path parameters and tags-split.
Fixes a syntax error when a path parameter is followed by a dash in a route array.
Handles void union types in MSW mock handlers.
Prevents unnecessary regeneration when watch mode launches.
Component keys are validated before spec parsing.
Enum constraints are guarded for non-array schemas.
Trailing whitespace is stripped from generated code output.
Request and response schema filenames are preserved when indexFiles is false.
Escapes regular expressions used by faker.
Corrects schema import canonicalization when indexFiles is disabled.
Patches explode query parameter support for SolidStart.
Resolves
$refschemas with suffix in runtime validation.Mock value names now use name instead of pascalCase(originalName), preventing suffixes from being dropped.
Prevents components from being injected into a Swagger 2.0 spec when it has no external refs.
Generate Blob for $ref schemas with format: binary.
Angular generation now handles tag cases insensitively when generating filterParams.
Addresses hanging or skipped generate:<name> scripts when running run-p.
Makes export order in mock barrels deterministic.
Keeps default values for required properties in generated Zod schemas.
Fixed an issue when using React hooks with httpClient set to fetch.
Fixes Angular codegen typing issues involving Zod imports, params handling, and response schemas.
Angular output no longer uses or exposes deepnonnullable.
Feature gating now resolves actual installed package versions.
Fixes MSW handling of mixed JSON-XML responses.
Fixes bugs in MSW mock generation.
Corrects React Query onSuccess typing for versions before 5.14 and after 5.89.
Handles $ref responses that do not have a content property.
Fixes schema generation output in split mode.
Zod output avoids trailing commas in additionalProperties consts.
Core normalizes allOf schemas that contain inline objects.
Core and fetch handle anyOf schemas with a null type in query parameters.
MSW mocks return null for circular references in required fields.
Cross-directory schema imports now include fileExtension.
Query invalidation generation skips the invalidation spread.
Generated code skips Content-Type for multipart/form-data and passes FormData to Angular HttpClient.
Nested discriminator oneOf schemas are hoisted.
Mocks generate null instead of undefined for nullable values with a reference.
MSW mocks now propagate required fields in allOf schemas.
Solid Query uses the use prefix for versions >= 5.71.5.
Multipart/form-data generation now supports contentMediaType for array items.
Multipart/form-data generation now supports contentMediaType in allOf, oneOf, and anyOf.
OpenAPI 3.1 type arrays that use $ref are now supported.
Generated Svelte and Vue code for versions before v4 no longer contains an extra curly brace.
Svelte v6 mutations now receive queryClient correctly.
The generated Hono validator.ts no longer has the TS2345 type error.
Restores generation of enum consts for oneOf schemas.
Fixes a TypeScript error with an optional parameter when optionsParamRequired is true.
Adds support for Bun and Yarn Berry catalogs in package.json.
Svelte prefetch options no longer use an accessor.
Avoids generating literal index signatures for propertyNames enums.
Merges schema index exports across runs.
Deduplicates union type members in generated code.
Completes AbortSignal renaming for body parameters.
Adds a null check to assertion handling.
Uses the schema name for formData when requestBody uses $ref.
Preserves the ./ prefix in operation schema import paths.
Keeps path parameters required in queryKey functions.
Union types are wrapped in parentheses when combined with allOf, preserving the intended TypeScript type expression.
Restores nullable handling for OpenAPI versions earlier than 3.1.
Fixes bidirectional imports when using operationSchemas.
Renames the generated AbortSignal when an API has a parameter named signal, avoiding a name collision.
Resolves allOf base schemas even when the base was seen in a different branch.
Fixes an error involving a custom instance in Angular query generation.
Passes the HTTP client inside a custom mutator.
Uses slice() instead of split() for date mock types.
Applies type aliasing to multipart/form-data body types.
Exits with code 1 when project generation fails.
Generates models for Swagger 2.0 responses.
Fixes duplicate invalidate function names in generated query code.
Restores compatibility with Tanstack Query v3.
When enabled, generated query keys now include path parameter information.
Fixes pagination and header support, and handles various response types when determining pagination termination.
The watch option accepts multiple paths again.
Zod schema generation now handles falsy default values.
orval 721 changes
Breaking changes 2
Node.js 22.18.0 or higher is required to use this release.
Zod schema definitions use unknown instead of any for type handling.
Security 3
CVE-2026-25141 was fixed.
Fixes a CVE regarding sanitization of MCP Tool input.
Security fix for js-yaml 4.1.1.
New APIs and options 1
An option to generate query invalidations is added.
Behavior and default changes 1
Version checks are skipped when using a Bun/Pnpm workspace catalog.
Tooling 2
Configuration files are processed with jiti v7.
The Zod generator supports OpenAPI 3.1 multi-type arrays.
Fixes and other changes 12
Writers use conventionName instead of camel to follow consistent naming conventions.
Fixed pagination and header support for useSWRInfinite in v7.
Generated error response types are deduplicated.
Fixes Zod's handling of namespace imports.
Generation of the prefetch hook for a hook-based mutator is fixed.
Prevents responseType: text from being added incorrectly.
Fixes a type-checking issue with the zValidator wrapper.
Some Hono configurations no longer generate wrong imports.
When using useOperationIdAsQueryKey, operationName is returned as a string.
The Zod generator considers path-level parameters when generating schemas.
External URL $ref values are no longer mangled.
Generated Hono code imports zValidator consistently.