Ferdi Koomen
432cd26fbc
Fixed package lock and formatted code
2023-07-28 12:20:01 +01:00
Ferdi Koomen
beccf2dede
Merge pull request #1627 from pitmullerIngka/fix/next-promise-resolve
...
fix: adjust promise resolve for next issue
2023-07-28 12:02:12 +01:00
Cajetan Grill
d97edce979
Updated file system tests to be OS-agnostic
...
- Test results for write operations are now designed to match irrespective of the system's path encoding: The previously used UNIX-style path strings do not match on Windows systems. Therefore, expected paths are now being resolved as they are in their corresponding write function.
- Unit tests should now pass on all systems.
2023-07-28 11:22:56 +02:00
Cajetan Grill
e0596a22a0
Updated code format tests to be OS-agnostic
...
- Test results for formatCode.ts are now designed to match irrespective of the system's line separators: The previously used multi-line template strings created UNIX-style line separators, which do not match on Windows systems. Therefore, line endings are now explicitly written into the expected output string, unfortunately affecting readability.
- Inside `formatCode`, input strings are now split into lines by any valid line separator. Previously, only the system's line separators have been considered, which may produce some unexpected results when receiving line endings from other systems.
2023-07-28 11:08:46 +02:00
Pit Müller
11f84f51ed
fix: adjust additional intermediate value call
2023-07-14 08:36:47 +02:00
Pit Müller
41e25b86e2
fix: adjust promise resolve for next issue
2023-07-05 14:26:47 +02:00
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
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
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
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