openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client

OTHER License

Downloads
723K
Stars
1.2K
Committers
83

Bot releases are visible (Hide)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: deduplicate exported data and response types (#538)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: use optional chaining in bin catch block (#528)

  • fix: broken encoding (#532)

  • fix(parser): handle type array (#533)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • feat: remove enum postfix, use typescript enums in types when generated, export enums from types.gen.ts (#498)

Patch Changes

  • fix: negative numbers in numeric enums (#470)

  • fix: escape keys in schemas starting with digit but containing non-digit characters (#502)

  • fix: issue causing code to not generate (t.filter is not a function) (#507)

  • fix: handle additional properties union (#499)

  • fix: do not export inline enums (#508)

  • fix: prefix parameter type exports to avoid conflicts (#501)

  • fix: export operation data and response types (#500)

  • fix: handle cases where packages are installed globally (#471)

  • fix: handle cases where package.json does not exist (#471)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: properly set formData and body when using options (#461)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • change: config option lint: true has changed to lint: 'eslint' (#455)

  • change: disable formatting with prettier by default (#457)

  • feat: add support for biomejs as a formatter (#455)

  • feat: move operationId config option to services object (#441)

  • feat: add operation error type mappings (#442)

  • feat: add support for biomejs as a linter (#455)

  • change: config option format: true has changed to format: 'prettier' (#455)

Patch Changes

  • fix: do not destructure data when using use options (#450)

  • feat: automatically handle dates in query string (#443)

  • fix: only remove core directory when export core is true (#449)

  • fix: add jsdoc comments with use options (#439)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • feat: add form type option for schemas (#433)

  • feat: replace useDateType with option in types object (#435)

  • feat: replace serviceResponse with option in services object (#434)

  • feat: replace postfixServices with configuration object (#430)

Patch Changes

  • fix: properly escape backticks in template literals (#431)

  • fix: transform names of referenced types (#422)

  • fix: use config interceptors passed to constructor when using named client (#432)

  • fix: properly escape expressions in template literals (#431)

  • fix: do not export common properties as schemas (#424)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: unhandled SyntaxKind unknown when specification has numeric enums (#417)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: revert to generating commonjs for esm and commonjs support (#409)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • feat: allow choosing naming convention for types (#402)

Patch Changes

  • fix: rename exportModels to types (#402)

  • fix: rename models.gen.ts to types.gen.ts (#399)

  • fix: export enums from index.ts (#399)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • feat: rename generated files (#363)

  • feat: add JSON-LD to content parsing (#390)

  • fix: generate enums into their own file (#358)

Patch Changes

  • fix: remove file if no contents to write to it (#373)

  • fix: eslint properly fixes output (#375)

  • fix: invalid typescript Record generated with circular dependencies (#374)

  • fix: prefer unknown type over any (#392)

  • fix: only delete generated files instead of whole output directory (#362)

  • fix: handle decoding models with % in description (#360)

  • fix: throw error when typescript is missing (#366)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: inconsistent indentation in models file when not using format: true (#349)

  • fix: output path no longer required to be within cwd (#353)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • fix: rename write to dryRun and invert value (#326)

Patch Changes

  • fix: generate constant size array types properly (#345)

  • fix: support x-enumNames for custom enum names (#334)

  • fix: export service types from single namespace (#341)

  • fix: generate models with proper indentation when formatting is false (#340)

  • fix: log errors to file (#329)

  • fix: cleanup some styling issues when generating client without formatting (#330)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: do not ignore additionalProperties when object with properties object (#323)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: escape schema names (#317)

  • fix: escape backticks in strings starting with backtick (#315)

openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: ensure strings with both single/double quotes and backticks are escaped properly (#310) (#310)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Minor Changes

  • remove: generics as valid option for serviceResponse (#299)

Patch Changes

  • fix: escape dollar sign in operation names (#307)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: move service types into models file (#292)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 6 months ago

Patch Changes

  • fix: do not throw when failing to decode URI (#296)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • feat: export schemas directly from OpenAPI specification (ie. support exporting JSON schemas draft 2020-12 (#285)

Patch Changes

  • fix(config): rename exportSchemas to schemas (#288)
openapi-ts - @hey-api/[email protected]

Published by github-actions[bot] 7 months ago

Minor Changes

  • fix(config): remove postfixModels option (#266)

  • fix(client): do not send default params (#267)

Patch Changes

  • fix(api): use TypeScript Compiler API to create schemas (#271)

  • fix(client): export APIResult when using serviceResponse as 'response' (#283)

  • fix(parser): use only isRequired to determine if field is required (#264)

Package Rankings
Top 17.44% on Npmjs.org