orval

orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. šŸŗ

MIT License

Downloads
640.2K
Stars
2.6K
Committers
154

Bot releases are hidden (Show)

orval - Release 7.0.0 Latest Release

Published by anymaniax 3 months ago

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 when fetch with vue (#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 with swr (#1498) (3d493a7)

Reverts

  • Revert "chore(deps): bump @ibm-cloud/openapi-ruleset from 1.14.2 to 1.18.2 (#ā€¦" (#1503) (7ae76b4), closes #1503
orval - Release 6.31.0

Published by anymaniax 4 months ago

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

orval - Release 6.30.2

Published by anymaniax 4 months ago

6.30.2 (2024-06-07)

Bug Fixes

  • query: correctly set global options (8d3b3ea)
orval - Release 6.30.1

Published by anymaniax 4 months ago

6.30.1 (2024-06-07)

Bug Fixes

  • core: verboptions revert deep merge operations and tags (f49e706)
  • query: properly merge options by operation and tag (27080ea)
orval - Release 6.30.0

Published by anymaniax 4 months ago

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

orval - Release 6.29.1

Published by anymaniax 5 months ago

6.29.1 (2024-05-17)

Bug Fixes

  • hono: correctly check response validator application/json (43766c8)
orval - Release 6.29.0

Published by anymaniax 5 months ago

6.29.0 (2024-05-17)

Bug Fixes

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

orval - Release 6.28.1

Published by anymaniax 6 months ago

6.28.1 (2024-04-25)

Bug Fixes

  • zod: missing zod prefix (8df6df7)
orval - Release 6.28.2

Published by anymaniax 6 months ago

6.28.2 (2024-04-25)

Bug Fixes

  • zod: remove double strict (b311298)
  • zod: response and body parser array compatibility (0a03004)
orval - Release 6.28.0

Published by anymaniax 6 months ago

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 with mock option (#1328) (25a5e39)
  • swr: strongly type args in swr mutation fetchers (#1324) (7feae35)
  • zod: handle schema type array correctly (#1311) (b1d66dc)

Features

  • added output.fileExtension option to possible specifying the extension for the generated file. (#1320) (913ac00)
  • core: add option to apply biome to generated files (#1321) (5f5dc17)
  • zod: add option coerce (#1310) (25267ae)
orval - Release 6.27.1

Published by anymaniax 6 months ago

6.27.1 (2024-04-11)

Bug Fixes

  • hono: missing import when operationId in pascal case (0794603)
orval - Release 6.27.0

Published by anymaniax 6 months ago

6.27.0 (2024-04-11)

Bug Fixes

  • hono: validator response and param correctly typed (6d002f5)
  • schema type integer (#1294) (9c11e7a)

Features

orval - Release 6.26.0

Published by anymaniax 7 months ago

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

  • jsdoc block tags (#1231) (15e9033)
  • swr: add swrInfiniteOptions property to output.override.swr (#1245) (3ee6904)
  • swr: add swrMutationOptions property to output.override.swr (#1225) (d5ccc8c)
  • swr: remove output.orverride.swr.options property (#1246) (d94d15d)
orval - Release 6.25.0

Published by anymaniax 8 months ago

6.25.0 (2024-02-17)

Bug Fixes

  • afterAllFilesWritten (#1194) (84a9ac7)
  • angular: avoid Angular type error when nullable (#1200) (cd0a56e)
  • core: implement {} insterd of unknown 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, and split mode (#1205) (9f16e37)
  • msw: refactor to include duplication of mock imports in mocks in split and split-tags modes (#1214) (1c39aab)
  • useMutation still appears even if false (#1209) (288f488)
  • useQuery improve override logic (#1212) (1aff031)

Features

  • swr: add swrOptions property to output.override.swr (#1223) (74ef879)
orval - Release 6.24.0

Published by anymaniax 9 months ago

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 in split-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 with msw 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 the swr 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)

Reverts

  • Revert "fix(zod): allow blank value for non-required enums (#1113)" (#1116) (7580f55), closes #1113 #1116
orval - Release 6.23.0

Published by anymaniax 10 months ago

6.23.0 (2023-12-19)

Bug Fixes

  • core: readonly array schema value (#1103) (89368ea), closes #1102
  • core: use non-barrel schema file imports when using split-tags mode (e3eb63e)
  • crash when no response mediaType (#1109) (793c8cf)
  • zod: allow blank value for non-required enums (#1113) (1edc2ab)

Features

  • schemas: Add option to configure generated schema item suffix (#1104) (1423d08)
orval - Release 6.22.1

Published by anymaniax 11 months ago

6.22.1 (2023-12-06)

Bug Fixes

  • query: mutation dont force to pass a paramater to mutate function (e03b0ad)
orval - Release 6.22.0

Published by anymaniax 11 months ago

6.22.0 (2023-12-06)

Bug Fixes

Features

orval - Release 6.21.0

Published by anymaniax 11 months ago

6.21.0 (2023-11-28)

Bug Fixes

  • accounted for properties with the same name (#1042) (1c7d4d9)
  • axios: ignore commented out lines (#1031) (4430193)
  • core: getters body sanitize implementation (#1048) (b712ffe)
  • enable multiple properties of array consts (#1051) (3ee382b)
  • improve isurl regex (#1032) (30ba2a2)
  • mock: amended http response types for typescript plain text compatibility (06fd568)
  • mock: infinite loop due to circular ref into arrays or allOf (2dfea42)
  • msw: faker object keys no longer in quotes (#1034) (27104e0)
  • query: better body definition regex (#1047) (1000e2d)
  • query: fix pageParam for useInfiniteQuery (#947) (685edcd)
  • return yarn.lock back for the docs (6f431ec)
  • revert back to manual type specification for passing type checks (2bd83fb)
  • schemas: detect duplicate schema names and throw (#876) (6627402)
  • uppercase method verbs (#1044) (fa12e9c)
  • use require_tld instead of regex (#920) (15835b7)
  • zod: array min max issues (#1052) (5b29452)
  • zod: proper date handling (#1050) (67856c2)

Features

  • add optional configuration parameter to generate native Typescript enums (#1058) (76efc85)
  • mock: moved msw folder to 'mock' to account for future work with other mocking solutions (4f9003b)
orval - Release 6.20.0

Published by anymaniax 12 months ago

6.20.0 (2023-11-09)

Bug Fixes

Features

Package Rankings
Top 1.4% on Npmjs.org
Badges
Extracted from project README
npm version License: MIT tests orval
Related Projects