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 visible (Hide)

orval - Release 6.10.1

Published by anymaniax about 2 years ago

6.10.1 (2022-09-22)

Bug Fixes

  • mock: combine allOf with properties when one element (78275c5)
  • msw: generate correctly multi files with non specification file (c36b4c8)
orval - Release 6.10.0

Published by anymaniax about 2 years ago

6.10.0 (2022-09-13)

Bug Fixes

  • code: generated code for arrays with nullable items (#563) (6b3f770)
  • compare-versions: handling range versions (031a02a)
  • generators: sanitize schema name (94a4d39)
  • msw (#532) (e18539d)
  • msw: generated mocks for polymorphic type (#567) (5748a40)
  • mutator: correctly check if custom instance is a hook (d921c2f)
  • writers: fix handling of duplicate kebab'd tag names (#581) (a2b929a)

Features

orval - Release 6.9.6

Published by anymaniax about 2 years ago

6.9.6 (2022-08-05)

Bug Fixes

  • mutators: parser handling return function with multiple statements (6975aff)
orval - Release 6.9.5

Published by anymaniax about 2 years ago

6.9.5 (2022-08-04)

Bug Fixes

  • mutator: handling correctly hook mutator with second parameter (a5a3629)
orval - Release 6.9.4

Published by anymaniax about 2 years ago

6.9.4 (2022-08-03)

Bug Fixes

  • msw: multi refs files context resolution (6e1a43f)
  • msw: multi refs files only change context for a ref (92c878f)
  • msw: path import enums multi refs files resolution (2f70caa)
orval - Release 6.9.3

Published by anymaniax about 2 years ago

6.9.3 (2022-08-02)

Bug Fixes

  • query: remove useless semi-colon and add where needed (486dceb)
orval - Release 6.9.2

Published by anymaniax about 2 years ago

6.9.2 (2022-07-25)

Bug Fixes

  • combine: handling combine + properties and enums (928e0a8)
  • string: enum sanitized correctly and sanitize only special char (c91b42b)
orval - Release 6.9.1

Published by anymaniax about 2 years ago

6.9.1 (2022-07-21)

Bug Fixes

  • generators: discriminator resolvers & cleanup promise (4718234)
  • generators: fully handling react query v4 (f7e5cf5)
orval - Release 6.9.0

Published by anymaniax over 2 years ago

6.9.0 (2022-07-17)

Bug Fixes

  • clients: handling typescript option exactOptionalPropertyTypes (460d3bb)
  • dependabot (#401) (d5f62ae)
  • form-data: correctly handling array (9af1876)
  • generator: angular transform return types to map (9b0ef8f)
  • generators: clear return types on each generation (a663a17)
  • getters: route handling wildcard param (64d7a79)
  • imports: always split type and value (bd97425)
  • mock: no properties found replace {} by empty string (f55dafb)
  • mocks: combine with properties (899a8cb)
  • msw: improve route url generation (365b7ff)
  • query-params: add the possibility of required query params (d6f39f9)

Features

  • add delay parameter to override.mock (#431) (8f5e3a2)
  • config: add hooks (#459) (c594bac)
  • config: allow types to be used instead of interfaces (#400) (3abf56c)
  • core: add possibility to generate headers (6dbaa3f)
  • generator: add type discriminator to subtypes (#426) (048f594)
  • generators: add possibility to include and exclude content types (fde21ef)
  • openapi: support 3.1 (cd1c714)
  • query: add options to remove signal (a8023bc)
  • query: handle new react query feature notifyOnChangeProps (74c6350)
  • swr: add options in the orval config (734139d)
  • validation: upgrade dependencies (478270b)
orval - Release 6.8.1

Published by anymaniax over 2 years ago

6.8.1 (2022-05-18)

Bug Fixes

  • client: remove export awaited type and only add it when needed (9491ee1)
orval - Release 6.8.0

Published by anymaniax over 2 years ago

6.8.0 (2022-05-16)

Bug Fixes

  • generator: fix missing comma in axios generator when mutator has 2nd arg (#383) (0edef1f)
  • mock: combine only one element different then object type (52a7da2)
  • mocks: fix array enum mock generation when enum is NOT a $ref (#375) (336612f)
  • resolvers: fix generating schema for alias object (#382) (37a993b)

Features

  • clients: add query cancellation (#357) (48eda4b)
  • clients: align awaited type everywhere (4cc91cf)
  • enums: generate with new format (2014dc2)
  • expose api necessary to create generators' overrides (#369) (8332ae7)
orval - Release 6.7.1

Published by anymaniax over 2 years ago

6.7.1 (2022-04-07)

Bug Fixes

  • axios-client: better result type without mutators (ee09ac8)
  • generator: add prefix to es5keyword parameters (#356) (940c729), closes #284
  • options: add header content type (7cc54eb)
  • query: fix the mutation body using BodyType wrongly replaced (#354) (ad21fe7)
  • writers: correctly pass customTitleFunc (fc1973b)
orval - Release 6.7.0

Published by anymaniax over 2 years ago

6.7.0 (2022-04-02)

Bug Fixes

  • deps: update dependencies that are not major versions (#341) (736e21d)
  • footer: warn about params change if footer function call fail (e9f073a)
  • getters: combine handling when only one element (8e99ff9)
  • getters: path to operationId accept dash (48c39af)
  • mocks: array enums handled correctly (0656ae5)
  • query: correctly set body definition (d5f36c1)
  • query: export QueryError type for muation query (ba57eb1)
  • query: prefer MutationData and MutationError suffix for mutations (6ebad15)
  • query: prefer Result over Data for result data type suffix (4cffd77)
  • query: use NonNullable for QueryData type generation (25341f1)

Features

  • angular: add return type for angular client (c234e7a)
  • axios: add return type for swr client (42c40c9)
  • axios: correctly handle return tyep for axios (d27df09)
  • query: allow body type customisation through mutator for mutations (#319) (9856d94)
  • query: generate query return type along each client endpoints (#318) (d7cb2d4)
  • query: generate query return type for along with hooks (e4c1dd9)
  • swr: add return type for swr client (40345ed)
  • writers: header handling directly return string or eslint-disable (df688ea)
orval - Release 6.6.4

Published by anymaniax over 2 years ago

6.6.4 (2022-02-21)

Bug Fixes

  • cli: correctly pass all global options (de2e0e6)
  • writers: mutators multi arguments correctly generate parameters type (6ce1916)
  • params: allow [_-] in url params (#322) (7cb7112)
orval - Release 6.6.3

Published by anymaniax over 2 years ago

6.6.3 (2022-02-20)

Bug Fixes

  • deps: ibm validator fixes issue #326 (#327) (cfde8e2)
  • generator: scalar object allof enum nullable (#330) (392c366)
  • generator: schema anyof correctly checked (#331) (63848b7)
  • options: handling url only when needed (7174cd0)
  • scalar: better handling object properties with additionalProperties (44b6c4e)
orval - Release 6.6.2

Published by anymaniax over 2 years ago

6.6.2 (2022-02-17)

Bug Fixes

  • scalar: more flexible object default type (539ba10)
orval - Release 6.6.1

Published by anymaniax over 2 years ago

6.6.1 (2022-02-16)

Bug Fixes

  • badges: add badges to readme (#316) (0f62905)
  • config: fix operationName bug not changing models naming (#313) (e86d0ef)
  • deps: updated dependencies (#324) (57f82bb)
  • enum: better nullable enum generation (#312) (2cbb132)
  • getters: allow object additional properties along with properties (#317) (d09a1c8)
  • loader: correctly handling * paths in tsconfig (5af4669)
  • mutator-parsing: stop loading the mutator and instead parse the code with acorn (#325) (60d0934)
  • options: correctly check the config mode (cb5cb35)
  • schema: generate 'any' instead of '{}' (#321) (46c7454)
  • server: fix operation names using ES5 keywords (#314) (2ea8b8b)
  • writers: only add useful imports (9903620)
  • writers: synchronous write to not override previous projet generated (930bf1d)
  • writers: tags-split only use operations link to the tag (a555f05)
orval - Release 6.6.0

Published by anymaniax over 2 years ago

6.6.0 (2022-02-08)

Bug Fixes

Features

  • generators: add deserialization to JS Date (#106 )(63c3072)
orval - Release 6.5.3

Published by anymaniax over 2 years ago

6.5.3 (2022-01-29)

orval - Release 6.5.2

Published by anymaniax over 2 years ago

6.5.2 (2022-01-29)

There is a problem with the post-install script on this version. Use version 6.5.3 instead

Bug Fixes

  • code: reducers speed & memory optimisation (#292) (af1ddd7)
  • generators: swr compatible with eslint "semi: error" rule (#304) (5ef7488)
  • getters: enum can contain dashes (#298) (3a92741)
  • lint: add comment to ignore no-explicit-any rule (#290) (55285b0)
  • msw: declaration 'req' is exempted from the unused parameter checking in handler (#287) (f8eac6c)
  • types: remove generic from axios query function generator (#284) (0acfb1f) (#293) (0bc3169)
Package Rankings
Top 1.4% on Npmjs.org
Badges
Extracted from project README
npm version License: MIT tests orval