Releases: orval-labs/orval
Releases · orval-labs/orval
Release 7.5.0
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
- add
hono.validator
option (#1811) (fe47c7d) - allow extension in mutator import (#1797) (ac62fa9)
- export types from @orval/core (#1824) (cceabe5)
- hono: added the ability to generate composite routes with the
hono
client (#1843) (bd653c2) - msw: create an index file exporting msw for split tags mode (#1803) (6938ec7)
- Sanitize model names in (#1859) (975d79e)
Release 7.4.1
Release 7.4.0
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
whenheaders
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
- core: property sorting (#1763) (c0eba70)
- core: take servers fields into account (#1718) (88ad889)
- fetch: add type to response data in
fetch
client (#1773) (7753b29) - fetch: avoid exception when the response body has no content (#1778) (743a71f)
- fetch: include error types in data type of fetch response (#1776) (17b1517)
- generate API as
TypeDoc
docs (#1705) (e67fa69) - handle ndjson response type in fetch client (#1722) (8fbaf07)
- query: Add default mutation key (#1730) (b23257b)
- TData generic for mutation hooks (#1735) (ac375fa)
Release 7.3.0
Release 7.2.0
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
inallOf
expands the object (#1638) (a45b20f) - msw: do not import delay if not needed (#1643) (a752a3e)
- msw: fix break
msw
whenanyof
includedallof
(#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 toDate
instance (#1645) (535bb65) - required of parent schema not considered in allOf #1570 (#1659) (86b63eb)
Release 7.1.1
7.1.1 (2024-09-17)
Bug Fixes
- change --apply to --write in biome check command (#1616) (f516975)
- exclude readOnly fields from CreateBody schema in Zod generation (#1625) (bdc584b)
- fetch:
fetch
client can now overrideheaders
withoptions
(#1627) (d9fcfd5) - generate zod constants for oneOf schemas (#1618) (19ff0e0)
- import react deps when tags have mutator (#1614) (47d3367)
- msw: broken mock when
allof
with not hasproperties
object (#1623) (2245435) - msw: do not use spread objects if
nullable
object schema inoneOf
(#1626) (261f8de)
Release 7.1.0
7.1.0 (2024-09-02)
Bug Fixes
- don't allow conversion if there are errors in the results of the validation (#1584) (852dce7)
- client-query: return type can be undefined when config request options is set to false (#1578) (a51064a)
- hono: validator unused cloned response (349829c)
- query: remove
Promise
from error type in query clients (#1571) (d689408) - relative hono handler imports when using tag mode (#1574) (8dac2a2)
- zod: Docs missing generateEachHttpStatus option (#1589) (e2ed21c)
Features
Release 7.0.1
Release 7.0.0
7.0.0 (2024-07-22)
Bug Fixes
- core: Referencing combined enums results in a duplicate schema name error (#1488) (3b27e47)
- faker ref resolver: use original name of referenced schema in ref resolution (#1510) (916e277), closes #1500
- fetch: remove unnecessary question mark in
fetch
query params (#1524) (db1f65f) - form-data: handling array items (#1336) (238dfa4)
- handle empty response in MSW mocks (#1482) (c2fff70)
- using
unref
to http function prop whenfetch
withvue
(#1518) (88052ee)
Features
- add ability to just generate specified zod validations (#1480) (c70fe7b), closes #1477
- add override function to empty response mocks (#1484) (e038704)
- fetch: support form data and form url encoded request (#1529) (5585779)
- generate literal types for booleans and numbers (#1512) (e30c7fc)
- mock: infer type from enum values for string and number (#1491) (833faeb)
- query: query clients can use
fetch
as an http client (#1514) (1e20e51) - swr: support for using
fetch
for http clients withswr
(#1498) (3d493a7)
Reverts
Release 6.31.0
6.31.0 (2024-06-25)
Bug Fixes
- applies fileExtension to schemas generated files (#1473) (68fd4fb)
- format for
orval
package options (#1450) (759ef48) - generate each http status is now zod specific (#1445) (f350fad)
- msw: correctly add imports for enum references (#1456) (f580f5d), closes #1455
- msw: correctly generate ref'd examples (#1459) (f296491)
- use unknown instead of any for additional properties (#1466) (950b547)
- zod: properly handling top level rules for array (#1475) (e1711e5)
- zod: treat
additionalProperties
keyword (#1443) (257a21f)