Releases: orval-labs/orval
Releases · orval-labs/orval
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)
Features
Release 6.30.2
Release 6.30.1
Release 6.30.0
6.30.0 (2024-06-07)
Bug Fixes
- allow async overrideResponse to be passed to msw handler (issue #1389) (#1390) (c799462)
- correct-enum-handling (#1386) (d5574cd)
- msw: also split allof objects (#1442) (e3e680f)
- msw: correctly generate integer enum mocks (#1437) (ce95b68)
- msw: fix response http status code in handler function (#1400) (a7e6a18)
- msw: if no success response apply a default 200 status (e236c5e)
- msw: make sure method is async even when delay=false (#1440) (991ac17)
- override: add deep merge with operations and tag options (#1397) (ce27a26)
- swr: correct second mutator parameter when using custom mutator (#1412) (1624e6a)
- take optional request body into account when creating form data (#1416) (9c44e9e)
- VueJS infinite query parameters reactivity when
hasInfiniteQueryParam
(#1379) (c1adaf7) - zod: all http responses can now be generated (#1429) (d27a5a3)
- zod: date format now respects useDates override (#1406) (36ebf4f)
Features
- add
input.filters.schemas
option (#1426) (bc21aad) - add new client
fetch
(#1353) (d1cf87f) - msw: split polymorphic mocks into its own functions (#1365) (ddf7964)
- msw: take string pattern property into account when generating mocks (#1398) (e32d4ec)
- release-it: update (bd9c16c)
- use better regex for route parameters (#1393) (ba24407)