375 Commits

Author SHA1 Message Date
Ferdi Koomen
275ec27650 Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen 2023-04-11 09:59:50 +02:00
Ferdi Koomen
bfbb6d2a74 Fixed tets cases 2023-04-11 09:59:38 +02:00
Ferdi Koomen
d5ca21c64e
Merge pull request #1067 from kulczy/arrays
Prevent duplication of parameter names
2023-04-11 09:58:09 +02:00
Ferdi Koomen
56d6b7b187
Merge pull request #1319 from seivan/patch-1
Support exactOptionalPropertyTypes
2023-04-11 09:37:15 +02:00
Ferdi Koomen
280e96f38a
Merge pull request #1363 from LittleUmbrella/master
add more detail to Generic Error message for easier troubleshooting
2023-04-11 09:04:31 +02:00
Ferdi Koomen
30bc235ac7
Merge pull request #1442 from edwinveldhuizen/feature/extendable-custom-request
[request] export used functions for reusability
2023-04-11 08:37:09 +02:00
Ferdi Koomen
80880e69c5
Merge branch 'master' into parameter-components 2023-04-11 08:34:21 +02:00
Ferdi Koomen
fd93a764bf Fixed build issue 2023-04-10 13:47:30 +02:00
Ferdi Koomen
5b5b750712 Fixed builds 2023-04-10 13:42:29 +02:00
Ferdi Koomen
fa5dd81c94 Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen 2023-04-10 12:38:51 +02:00
Ferdi Koomen
8b52a04617 Updated dependencies, cleanup 2023-04-10 12:38:21 +02:00
Kræn Hansen
295812419c
Added parsing of parameter components 2023-03-09 17:01:28 +01:00
Michal
9845ce7d3b
Merge branch 'master' into CancellablePromise 2023-03-01 12:34:13 +01:00
mstosio
8b416381b6 Update toStringTag in CancellablePromise 2023-03-01 12:15:21 +01:00
Edwin Veldhuizen
4f00cd387c
Avoid double export 2023-02-22 16:38:49 +01:00
Edwin Veldhuizen
e552028995 [request] export used functions for reusability 2023-02-15 16:25:47 +01:00
Toby Farris
371aba1639 add more detail to Generic Error message for easier troubleshooting. 'Generic Error' gives no insight into the nature of the issue, whereas having at least the http status conveys a great deal for troubleshooting 2022-12-13 13:20:22 -08:00
Seivan
a8fde3df30
Support exactOptionalPropertyTypes
A key being optional is different than the value being optional. Former indicates missing keys, while latter indicate, required key but missing value.
2022-11-14 23:16:09 +01:00
Ferdi Koomen
31ce4a23df
Merge branch 'master' into keywords 2022-10-28 10:41:27 +02:00
Ferdi Koomen
cf4f2f92f6
Merge branch 'master' into add-model-postfix 2022-10-28 10:37:34 +02:00
Ferdi Koomen
4379538a96
Merge pull request #1165 from kshramt/free-form-object
Support free-form objects
2022-10-28 10:36:15 +02:00
Ferdi Koomen
168da7abce
Merge pull request #1250 from sheshnathverma/master
Set default providedIn to root for angular client
2022-10-28 10:30:03 +02:00
Ferdi Koomen
175675422e
Merge pull request #1275 from vanhoofmaarten/fix/pattern-single-quote-escaping
Fix pattern single quote escaping
2022-10-28 10:28:13 +02:00
Maarten Van Hoof
3927dc6220 Fix pattern single quote escaping 2022-10-03 13:11:48 +02:00
Shesh
aeacd77f9f
Set default providedIn to root for angular client
Set default providedIn to root for angular client
2022-09-08 18:38:45 +05:30
Dennis Passway
05b2486647 Add json support for application/problem+json content type 2022-08-17 13:16:41 +02:00
Mauro Bieg
5d140cb860 Escape reserved keywords in schema names for v2, closes #1186 2022-08-10 11:12:18 +02:00
Mauro Bieg
05db3b97f8 Escape reserved keywords in schema names for v3, closes #1186 2022-08-10 11:10:18 +02:00
kshramt
e003116fa5 Support free-form objects
> A free-form object (arbitrary property/value pairs) is defined as:
>
>     type: object
>
> This is equivalent to
>
>     type: object
>     additionalProperties: true
>
> and
>
>     type: object
>     additionalProperties: {}

https://swagger.io/docs/specification/data-models/data-types/
2022-07-27 12:51:10 +09:00
Mark Brockhoff
63f21e68c8 feat: Only add as statement if postfixModels was specified 2022-07-14 11:43:26 +02:00
Mark Brockhoff
b1a8eb003a refactor: Handle support for --postfix inside cli 2022-07-14 11:42:59 +02:00
Mark Brockhoff
504928f76a feat: Add postfixModels to generate function & rename postfix to postfixServices 2022-07-14 11:17:31 +02:00
Ferdi Koomen
32ff947dee Fix undefined request body when body === false or 0, "" in other clients 2022-06-13 21:45:26 +02:00
visortelle
1bec18e664
Fix undefined request body when body === false or 0, "". 2022-06-13 14:06:08 +03:00
Ferdi Koomen
e180ba3f15 - Updated documentation
- Fixed issue with node-fetch abort signal
2022-06-13 11:18:17 +02:00
kulczy
a5f6367f78 Prevent duplication of parameter names 2022-06-07 22:40:56 +02:00
Ferdi Koomen
73d668a85a - Added support for NodeJS 12 2022-05-31 18:49:25 +02:00
Ferdi Koomen
0ae4db4f61 - Added better support for deprecated prop 2022-05-31 17:53:03 +02:00
Ferdi Koomen
4428f85f2c - Updated test cases after EOL change
- Added request options object to ApiError
2022-05-31 12:42:13 +02:00
Ferdi Koomen
f69da7fe2c - Making sure we have a blank line at the end of the generated files 2022-05-31 11:46:48 +02:00
Ferdi Koomen
d9a7527652
Merge pull request #1037 from vrslev/type-only-axios-imports
Use type-only imports for `axios`
2022-05-31 10:53:42 +02:00
Ferdi Koomen
0dfebbdfc8
Merge pull request #1048 from huzaifahj/patch-1
Fix error TS2564
2022-05-31 10:53:04 +02:00
John Gozde
08d994c3d0
Set Content-Type in axios 2022-05-25 14:27:49 -06:00
huzaifahj
9e9c5923de
Fix error TS2564 2022-05-23 11:40:20 +01:00
Lev Vereshchagin
4867366cd5 Use type-only imports for axios
TypeScript type checker complains about imported types in clients generated for axios backend

Type-only imports: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
2022-05-03 17:22:56 +03:00
Ferdi Koomen
59254d94a9 - Upgraded dependencies
- Removed depricated enum model generation
- Fixed issue with "null" value inside comments for OpenAPI v2 enums
- Fixed issue with compatibility for latest version of Axios (0.27.x)
2022-04-26 16:25:49 +02:00
Ferdi Koomen
99bd25a3fd Remobved unused import from node-fetch example 2022-04-06 22:33:49 +02:00
Ferdi Koomen
28415a82d9 Removed private fields using new # syntax due to issues 2022-04-06 22:28:19 +02:00
Ferdi Koomen
05d5962144 Return undefined in most cases to support noImplicitReturns rule
Filter out wrong enum values
2022-04-06 22:21:06 +02:00
Ferdi Koomen
a42795517e
Merge pull request #980 from yuvalt/master
return undefined explicitly to avoid compilation errors
2022-04-06 21:18:14 +02:00