Skip to content

Releases: orval-labs/orval

Release 7.10.0

12 Jun 09:16
Compare
Choose a tag to compare

7.10.0 (2025-06-12)

  • feat: allow defining min and max ranges for mocked numbers and strings (#2150) (d919f9f), closes #2150
  • feat: use multipleOf only if faker v9 is installed (#2142) (f64f202), closes #2142
  • feat: implemented string format compatible with zod v3 and v4 (#2061) (f36a7b8), closes #2061
  • feat(core): override JSDoc config to customize default documentation (#2084) (5b58b5e), closes #2084
  • feat(zod): revert #1907 to not use discriminatedUnion (#2118) (d068f68), closes #2118 #1907
  • feat(zod): add support for string format time (#2063) (c5d45fc), closes #2063
  • feat(zod): date and datetime conpatible with v4 (#2062) (0c6fd5a), closes #2062
  • feat(zod): in v4, use strictObject() instead of object().strict() (#2068) (027ded8), closes #2068
  • fix: use arrayMin and arrayMax as default values when minItems and maxItems are not defined (#2149) (72c21ca), closes #2149
  • fix: use faker.number.float when mocking numbers and int when mocking integers (#2141) (98e0add), closes #2141
  • fix: avoid to include read only properties to request with multipart/form-data (#2089) (#2144) (8ec7db2), closes #2089 #2144
  • fix: use multipleOf when mocking numbers (#2134) (ace4695), closes #2134
  • fix: use minItems and maxItems when mocking arrays (#2131) (55e36b6), closes #2131
  • fix: use minLength and maxLength when mocking strings if defined (#2130) (48738ee), closes #2130
  • fix: use override for text/plain response types (#2123) (44c8cf4), closes #2123
  • fix: falsy examples were ignored (#2110) (6914ccc), closes #2110
  • fix(core): an object member cannot be declared optional (#2111) (cecfb47), closes #2111
  • fix(core): Updated queryParamsProp with allParamsOptional check (#2094) (9650171), closes #2094
  • fix(core): add x-enum-descriptions support (#2072) (304cceb), closes #2072
  • fix(core): fix pnpm catalog detection (#2067) (c290493), closes #2067
  • fix(query): resolve UseInfiniteQueryOptions type error with TanStack Query v5.80.0+ (#2151) (725e6a6), closes #2151
  • fix(query): allow useInfinite without useQuery in operation overrides (#2097) (d2baa51), closes #2097
  • fix(query): override operation mutation and query conflict (#2079) (b1338c1), closes #2079
  • fix(docs): update GeneratorVerbOptions link in output configuration documentation (#2100) (23cb52e), closes #2100
  • fix(docs): update swagger-parser link in input configuration documentation (#2101) (e94e69b), closes #2101
  • fix(docs): update swagger-parser link in input configuration documentation (#2095) (7aca565), closes #2095
  • chore(release-it): upgrade (43cb955)
  • chore(test): for no content responses with a default response (#2104) (ba1db79), closes #2104
  • chore(deps-dev): bump @eslint/js from 9.25.1 to 9.28.0 (#2138) (7d160f7), closes #2138
  • chore(deps-dev): bump @commitlint/cli from 19.7.1 to 19.8.1 (#2136) (05a3a60), closes #2136
  • chore(deps-dev): bump eslint from 9.17.0 to 9.25.1 (#2077) (273a98a), closes #2077
  • chore(deps-dev): bump tsup from 8.2.4 to 8.4.0 (#2076) (2630b1a), closes #2076
  • chore(deps-dev): bump @eslint/js from 9.21.0 to 9.25.1 (#2074) (d8fcf82), closes #2074
  • chore(deps): bump fs-extra from 11.2.0 to 11.3.0 (#2075) (0966a55), closes #2075
  • chore(deps): Update docs to Orval 7.9.0 (#2064) (1918391), closes #2064
  • add pnpm instructions (#2105) (ab50b23), closes #2105
  • docs(samples): update (608f4f2)

Release 7.9.0

27 Apr 12:23
Compare
Choose a tag to compare

7.9.0 (2025-04-27)

Release 7.8.0

03 Apr 18:52
Compare
Choose a tag to compare

7.8.0 (2025-04-03)

Bug Fixes

  • core: correctly import custom error and body types (#1977) (82675a4)
  • fetch: add default response if none provided (#1982) (d566fe4)
  • msw: nested ref fixes (#1983) (4be4caa)
  • reintroduce fix for native enums (#1957) (3221aae)
  • upgrade axios to ^1.8.2 and fix tsx errors (#1976) (33a37b3), closes #1971
  • zod: always prioritize required definitions to determine optional() (#1985) (752a540)
  • zod: correct tuple function mapping (#2006) (9185b97)
  • zod: enum schema generation for various types (#1996) (8cfb83e)
  • zod: handle $ref property names in schemas correctly (#1999) (1881dfa)

Features

  • add optional queryClient argument (#1992) (456037c)
  • core: add support for more enumname extensions (#2005) (994cc86)
  • query: add optional queryClient argument to mutations when using TanStack v5 (#1993) (e106067)
  • zod: add output.orverride.zod.datetimeOptions option (#1984) (b4eca05)

Release 7.7.0

13 Mar 12:40
Compare
Choose a tag to compare

7.7.0 (2025-03-13)

Bug Fixes

  • await asyncReduce in generateSpecs (#1950) (6dd8501)
  • display correct amount of duplicate schemas (#1958) (52d4c6f)
  • generate type for empty property (#1949) (8815e6b)
  • query: correctly check arg numbers, add operation info, add docs (#1974) (329218a)

Features

Release 7.6.0

27 Feb 15:53
Compare
Choose a tag to compare

7.6.0 (2025-02-27)

Bug Fixes

  • adjustments to native enums (#1882) (fcd942b)
  • core: don't union required with already required props (#1878) (3d122c3)
  • core: Fixed workspace setting does not append a newline to the end of a line in an existing index file #1875 (#1876) (727cbb5)
  • core: make sure to only handle first tag when grouping (#1942) (c46f6c9)
  • core: model starting with underscore properly handle (#1946) (ff65124)
  • core: remove any from type definition (#1937) (cf98554)
  • core: shallow-copy while creating override (global/tag/identifier) (#1901) (1fee4e5)
  • docs: dropdown overlap (#1932) (611cae9)
  • fetch: param stringification for Safari < 17.0 (#1918) (2df8c2d)
  • hono: zValidate path when using tags mode uses output.target based path (#1929) (f8a0ab2)
  • hono: avoid syntax error in composite routes (#1894) (2674c88)
  • hono: preserve parameter name as defined in the OAS (#1921) (7741f07)
  • hono: remove duplicate type imports in the index.context.ts (#1944) (b6a6fc5)
  • hono: remove unnecessary zod file and import (#1896) (53b6e8c)
  • implement discriminations correctly in zod (#1907) (1018f0c)
  • improve playground editor UX (#1890) (40cdba2)
  • msw: adjust combine to handle nested allof (#1936) (87d5e5e)
  • query: check for v5 flag (#1933) (c980cc8)
  • remove warning log (#1889) (97141ba)
  • typedoc samples and plugin support (#1927) (9001fad)
  • zod: add preprocess properly everywhere (#1940) (25d2c41)
  • zod: strict true when using a discriminator (#1923) (3830a38)

Features

  • add default zod support (#1924) (d5cd20a)
  • core: ✏️ add naming convention option to output (#1884) (a012305)
  • core: ability to provide custom validation ruleset (#1919) (3592782), closes #1887
  • fetch: split responses in separate types based on status (#1885) (cba57d1)
  • generate const object for const schema definition (#1850) (4260b73)
  • zod: generate min max values of array items when using allOf (#1938) (a809011)
  • zod: support multipart/form-data (#1920) (e77b7fd)

Release 7.5.0

03 Feb 14:38
Compare
Choose a tag to compare

7.5.0 (2025-02-03)

Bug Fixes

  • broken test in operation.test.ts (#1864) (c27bbbb)
  • core: combine schemas if type is array (#1818) (fae65bd)
  • core: export type with required properties in all-of object (#1819) (38dcfd4)
  • core: fallback to non-pascaled name (#1847) (b362845)
  • core: handle parameter counting in custom instance returning useCallback (#1830) (39926b7)
  • core: keyof typeof on native enum property (#1860) (1d703f0)
  • core: only generate one operation if it has multiple tags (#1812) (7314676)
  • core: parenthesize keyof typeof (#1846) (8154873)
  • docs: update docs for param serializer (#1855) (8b10578)
  • fetch: Improved error handling when body does not exist in fetch client (#1870) (043c5bc)
  • fetch: make sure responseDataType is not empty (#1827) (c091a0a)
  • hono: avoid unnecessary zValidator imports (#1814) (39a763a)
  • hono: custom validator always does return value (#1813) (828f558)
  • hono: remove unnecessary handler import when tags mode (#1833) (036bf52)
  • mock: ensure getMockScalar respects custom overrides for int64 format (#1829) (239187b)
  • msw: handle integer enums correctly (#1816) (e47c3de)
  • msw: make sure to not double import value and type (#1799) (cb58fb0)
  • msw: simplify combine (#1815) (5607700)
  • query: regression that breaks TData type check when using custom mutation (#1871) (e218b4c)
  • Remove broken sort of generated types (#1808) (9643099)
  • solve some fix-me and ts-errors (#1825) (dbd9c9b)

Features

Release 7.4.1

09 Jan 12:14
Compare
Choose a tag to compare

7.4.1 (2025-01-09)

Bug Fixes

  • query: infinite query and placeholder type and new datatag error (#1805) (42c3ec2)
  • zod: pass resolved specKey in context (#1789) (813916e)

Release 7.4.0

07 Jan 21:39
Compare
Choose a tag to compare

7.4.0 (2025-01-07)

Bug Fixes

  • core: add unknown[] when items is not defined (#1757) (5be5cd4)
  • core: fixed error where a renamed enum was used by old name (#1767) (21ba4b2)
  • core: fixes 878 header parameter as ref not generated properly (#1714) (8aded2e)
  • core: generate schemas when filters.schemas undefined (#1744) (2ab33db)
  • core: make sure to add '| null' to enums with null in type array (#1739) (b653320)
  • core: make sure to keyof typeof native enums (#1759) (9321a0c)
  • core: take output.indexFiles setting into account (#1770) (074936a)
  • core: undefined type is sometimes allowed for formdata (#1720) (9dccae9)
  • correct imports in Mock handlers without index (#1758) (5a1b087), closes #1547
  • fetch: make sure to not double promise for custom fetch mutator (#1768) (c89d9c9)
  • fetch: pass headers to fetch when headers option is activated (#1780) (9784454), closes #1779
  • msw: fix errornous comma at start of object (#1754) (4cb2942)
  • msw: no more missing properties. support oas31 const (#1755) (1853e1b)
  • query: make sure to make definition have optional typing if allparamsoptional (#1762) (7c36284)
  • query: vue query unref form data (#1713) (872e5d7)
  • workspaces: properly setup eslint v9 (#1793) (4d696f5)

Features

Release 7.3.0

16 Nov 16:10
Compare
Choose a tag to compare

7.3.0 (2024-11-16)

Bug Fixes

Features

  • core: add mode include/exclude to input filters option (#1690) (119c4d9)
  • fetch: add response headers in fetch client (#1699) (af46ebe)
  • improve type-safety (like the queryOptions type-helper) (#1672) (b24ef85)

Release 7.2.0

22 Oct 10:47
Compare
Choose a tag to compare

7.2.0 (2024-10-22)

Bug Fixes

  • add nullable condition to multipart formdata for openapi3.1 (#1646) (b3b0306)
  • angular: add request overloads based on observe property (#1633) (398b667)
  • Correctly set type for false or 0 constants (#1653) (4692501)
  • deps: yarn.lock (f523b7c)
  • msw: ref in allOf expands the object (#1638) (a45b20f)
  • msw: do not import delay if not needed (#1643) (a752a3e)
  • msw: fix break msw when anyof included allof (#1635) (f373039)
  • msw: fix broken mocks when using 'allOf' within 'anyOf' and using a shared schema (#1663) (87e1db6)
  • msw: Incorrect Import Generated for Enum in Mock Files (#1639) (b37b2b3)
  • msw: when use useDates, convert faker values to Date instance (#1645) (535bb65)
  • required of parent schema not considered in allOf #1570 (#1659) (86b63eb)