Releases: orval-labs/orval
Releases · orval-labs/orval
Release 6.29.1
Release 6.29.0
6.29.0 (2024-05-17)
Bug Fixes
- allow making second axios, etc., param
required
instead ofoptional
(#1357) (b13dbb3) - allow to override only root mock (#1338) (dc18a87)
- correct import for anyof enums (#1371) (d3ddbdd)
- fix type of filters.tags, add regexp to docs (#1369) (50a7ad7)
- format to index of
hono
(#1368) (5581edf) - handle OpenAPI 3.1 nullability for mocks (#1381) (efc4c35)
- hono: remove handler fix (692f749)
- hono: validator return parsed value (#1339) (6d41605)
- msw: make delay optional (#1360) (393a6d8)
- msw: make sure to early out when detecting loop in additionalproperties (#1362) (4536f34)
- path to file url (#1372) (a61d26a)
- unstable reference (Issue 1359) (#1374) (f7db4ca)
- valid syntax when anyOf is present on querystring (#1341) (41f6612)
Features
- 'suppressReadonlyModifier' override option introduced (#1354) (86f2cf1)
- allow override for mock handlers to be a function (#1375) (bc3d277)
- hono: add async to handler (db7de2f)
- hono: add validator option (770295f)
Reverts
Release 6.28.2
Release 6.28.1
Release 6.28.0
6.28.0 (2024-04-25)
Bug Fixes
- accumulate discriminator mapping keys (#1305) (1cc9e01)
- core: discriminator nullable property (7294c32)
- hono: context add out type (39a1884)
- hono: handle correctly response validation empty (48436f2)
- mock/msw: override response if it's false as well (#1313) (b13df01)
- msw: correctly mock nested objects (#1325) (d7fa66d)
- MSW: fixed so that
Function
can be accepted withmock
option (#1328) (25a5e39) - swr: strongly type args in swr mutation fetchers (#1324) (7feae35)
- zod: handle schema type array correctly (#1311) (b1d66dc)
Features
Release 6.27.1
Release 6.27.0
Release 6.26.0
6.26.0 (2024-04-01)
Bug Fixes
- core/src/types.ts: operatations option mock data now supports array (#1283) (e990899)
- core: distinguish the value when it is blank only in
interface
(#1228) (dfa076a) - core: improve NonReadonly type (#1237) (5b76e3b), closes #1236
- core: NPE check in validator (#1238) (cf66f3f)
- fixes #1253 removing resolver for `null` type (#1255) (b63ffe6)
- msw: make sure to not try to include error type in mock implementation (#1274) (5fe09c3)
- msw: mock blobs as blobs instead of strings (#1269) (54df332)
- msw: return mock as array of enums if array is the correct type (#1272) (150f49e)
- name param __ in case of no body arg (#1263) (77d10b4)
- overridden non-GET queries not generating hooks (#1251) (05bb15b)
- query: type return of useMutation query (#1215) (9c13f1f)
- query: usePrefetch should only work for Query/Infinite types (#1235) (4fecbb2), closes #1234
- request bodies should take required property into account (#1277) (661a6ad)
- swr: error type is correct even when it's the same type as success type (#1276) (6e521b5)
- swr: make sure to not include comma when not valid while generating swrMutationFetcher (#1271) (ee01104)
- TypeError custom override (#1229) (4f95efb)
- vue: update samples to v5 and fix type issue (#1268) (c9834b6)
Features
Release 6.25.0
6.25.0 (2024-02-17)
Bug Fixes
- afterAllFilesWritten (#1194) (84a9ac7)
- angular: avoid
Angular
type error whennullable
(#1200) (cd0a56e) - core: implement
{}
insterd ofunknown
for blank schema interface (#1219) (97552e4) - msw: changed naming convention for response mock functions to avoid function name conflicts (#1217) (e528e11)
- msw: fixed imports of
split-tags
,tags
, andsplit
mode (#1205) (9f16e37) - msw: refactor to include duplication of mock imports in mocks in
split
andsplit-tags
modes (#1214) (1c39aab) - useMutation still appears even if false (#1209) (288f488)
- useQuery improve override logic (#1212) (1aff031)
Features
Release 6.24.0
6.24.0 (2024-01-31)
Bug Fixes
- add option for adding missing props to union types, fix duplicate props (340012c)
- adjust SecondParameter utility type (#1125) (848bbe3)
- auto-formatting regression (#1117) (5ab74a3)
- avoid duplicate variable name in genrated function for query clients (#1131) (dbfb2e5)
- core: add missing properties in subschemas to fix TS error (#1115) (b889c88)
- core: Fixed condition for using
barrel
import insplit-tags
mode (#1122) (0a747c7) - define default value for
msw
mock orverride (#1184) (992085b) - handle nordic characters when converting to pascal-case (#1157) (7e563eb)
- mock:
null
is excluded instead of being converted to an empty string''
(#1166) (c41635b) - openapi 3.1 schemas with multiple types (#1170) (35e5074)
- reproducible typescript output (#1159) (#1179) (a11e821)
- strictly check dependencies import judgment using regular expressions (#1146) (c42fcda)
Features
- don't inject generated files into hook command (#1181) (2a77a04)
- implement function generation using
useSWRMutation
(#1148) (632a666) - msw: define the return value type in the
msw
mock function. (#1171) (99cc5a6) - msw: possible to overwrite value when creating an
object
withmsw
mock (#1165) (c7ccb65) - msw: possible to value of the mock handler function overridable (#1186) (0d05129)
- msw: separated mock handler and made it reusable (#1182) (02161de)
- only generate the formData mutator if the operation body includes formData information (#1178) (48a1b6e)
- possible to generate a function using
useSWRInfinite
on theswr
client. (#1138) (67bf84f) - query: add shouldExportMutatorHooks option (#1105) (e602232)
- show error stack traces (#1163) (461e813)
- support for const types (#1180) (ee5334f)
- support for prefixItems (#1175) (2231f78)