224 Commits

Author SHA1 Message Date
Ferdi Koomen
aa59c50605
Merge pull request #1497 from gz/generated-header
Indicate auto-generation in file headers.
2023-07-05 10:09:40 +02:00
Ferdi Koomen
80304d996a
Merge pull request #1434 from Or-Zarchi-Forter/master
Allow usage of a custom axios instance
2023-07-05 10:00:25 +02:00
Gerd Zellweger
744bb4e42d
Add a line to the file header indicating that the file is auto-generated. 2023-04-25 05:52:29 +00:00
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
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
5b5b750712 Fixed builds 2023-04-10 13:42:29 +02: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
Or Zarchi
f27366c9a9 Allow usage of a custom axios client 2023-02-05 22:52:27 +02: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
cf4f2f92f6
Merge branch 'master' into add-model-postfix 2022-10-28 10:37:34 +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
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
Mark Brockhoff
63f21e68c8 feat: Only add as statement if postfixModels was specified 2022-07-14 11:43:26 +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
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
Yuval Tal
228e549b6b return undefined explicitly to avoid compilation errors 2022-03-08 11:31:50 -05:00
Philipp Katz
b7c1cbe8e5 Make BaseHttpRequest abstract
* it's not meant for instantiation anyways, right?
* it'll prevent TS compile error TS6133 when `noUnusedParameters` compiler option is enabled
2022-03-07 17:21:36 +01:00
Ferdi Koomen
2f8ae47c2a - Fixed issue with non string values in x-enum flags 2022-02-25 12:19:46 +01:00
Ferdi Koomen
fce9d907da - Minor change in import order 2022-02-07 18:21:46 +01:00
Ferdi Koomen
75a648cc4e - Added support for the Angular client with --name parameter 2022-02-07 18:16:11 +01:00
Ferdi Koomen
ba151594bc - Testing multiline descripts for params
- Made client and request vars public
2022-01-31 20:05:32 +01:00
Ferdi Koomen
58ba24e5bc - Fixed #948 2022-01-31 19:38:23 +01:00
Ferdi Koomen
5c45280bc7 - Updated example in documentation
- Updated imports of Angular request
2022-01-28 19:01:00 +01:00
Ferdi Koomen
16cc25bf1e - Updated test cases
- Fixed capture of error body in Angular
2022-01-28 10:32:50 +01:00
Ferdi Koomen
8915770ad9 - Eslint fixes 2022-01-28 00:32:16 +01:00
Ferdi Koomen
017de0e236 - Fixed whitespace 2022-01-28 00:28:56 +01:00
Ferdi Koomen
8e05e64a72 - Fixed Angular client 2022-01-28 00:19:01 +01:00