375 Commits

Author SHA1 Message Date
Ferdi Koomen
3dde57a8ec - Updated dependencies
- Aligned request cancelation between clients
2022-01-24 16:51:05 +01:00
Keith Broughton
51f6901515 Handle empty tags 2022-01-10 17:03:34 +11:00
Ferdi Koomen
fe294e961e - Reverted handlebars import
- Cleanup of configuration
2022-01-06 18:45:44 +01:00
Ferdi Koomen
07c98cf9e6 - Modernized setup and using typescript for test files 2022-01-06 18:41:57 +01:00
Ferdi Koomen
cfdbe48df3 - Removed cross-blob dependency since node now supports this 2022-01-06 15:18:16 +01:00
Sjoerd Mulder
cb4732d14f Simlified if statements 2021-12-23 08:54:51 +01:00
Ferdi Koomen
0eb5e91ce4 - Added types for some methods
- Fixed build after PR's
- Exported Cancelation Error
2021-12-22 18:16:34 +01:00
Ferdi Koomen
c39e82fff5 Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen 2021-12-22 17:33:57 +01:00
Ferdi Koomen
e2014db63a - Removed file type 2021-12-22 17:33:50 +01:00
Ferdi Koomen
e6945897d3
Merge pull request #741 from sjoerdmulder/feature/discriminator
Adding oneOf with discriminator property support
2021-12-22 11:29:57 -05:00
Ferdi Koomen
d11d7c1448
Merge pull request #740 from sjoerdmulder/feature/formdata-as-body
Allow FormData as body argument
2021-12-22 11:29:37 -05:00
Ferdi Koomen
800236d727
Merge pull request #910 from jurgenbelien/feature/description-in-schema
Add description to schema output
2021-12-22 11:27:35 -05:00
Sjoerd Mulder
9680e9c744 Allow FormData as body argument 2021-12-21 14:24:00 +01:00
Sjoerd Mulder
d82f3eb706 Removed whitespace 2021-12-21 14:08:04 +01:00
Sjoerd Mulder
a543b9d490 Adding discriminator support for oneOf 2021-12-21 14:05:19 +01:00
Samuel Rossille
21d0e116e7 Fix client compilation error in base64()
Context :

The base64 function tries using the btoa function and falls back to
using Buffer if btoa is not available.

Problem :

In the context of a dom, you have btoa, and you may not necessarily have
Buffer, and in the case the fallback branch creates a compilation error
"TS2591: Cannot find name 'Buffer'."

Solution :

Add a @ts-ignore in the fallback branch because we will always have
either btoa or Buffer available in the forseable future.
2021-12-19 11:05:42 +01:00
Jurgen Beliën
ac0d8f9bb0 fix(templates): only escape single quotes 2021-12-10 09:28:13 +01:00
Jurgen Beliën
9f388bf182 feat: add descriptions to schema output 2021-12-09 18:32:36 +01:00
Ferdi Koomen
e0b4e2d22a - Fixed #771 2021-11-29 16:52:20 -05:00
Ferdi Koomen
fa9b0536bf - Fixed #891 added support for multiple files in form data 2021-11-29 16:05:37 -05:00
Ferdi Koomen
e263cb27f6 - Fixed #892 2021-11-26 15:51:14 -05:00
Ferdi Koomen
6d822eb802 - Fixed #890 2021-11-26 14:55:31 -05:00
Ferdi Koomen
5533ed424a - Fixed typescript compile issue 2021-11-18 22:38:39 +01:00
Ferdi Koomen
1e410e75ea - Added better error handeling in axios client 2021-11-18 22:35:08 +01:00
Ferdi Koomen
133bd31473 - Added error handler for XHR when resource is unreachable 2021-11-16 21:14:22 +01:00
Ferdi Koomen
7e8d66b90a - Fixed issue where similar model name and service name would result in filtering out the import 2021-11-13 10:20:19 +01:00
Ferdi Koomen
bbaa039d62 - Updated code to work with media types like "application/json; type=collection" where type is the first part of the header 2021-11-11 15:33:06 +01:00
Ferdi Koomen
f083ffb79d - Added multiple tags support 2021-11-11 13:01:11 +01:00
Ferdi Koomen
697de58134 - Added credentials mode for more granular controll 2021-11-11 09:36:47 +01:00
Ferdi Koomen
aecdc3eb15 - Added postfix property for service names
- Added cross blob for node js implementations
- Fixed unittests
- Fixed typing issue with headers
2021-11-10 14:31:03 +01:00
Ferdi Koomen
c0137757e6 - Updated line endings 2021-11-01 12:53:11 +01:00
Ferdi Koomen
ba0b79daac Fixed issue #782 2021-10-29 13:49:15 +02:00
Ferdi Koomen
35bda10d18 - Fixed binary format checking 2021-10-29 13:36:47 +02:00
Ferdi Koomen
cc6c7f2241 - Fixed required field order for referenced parameters 2021-10-28 23:12:30 +02:00
Ferdi Koomen
83a2370d3c - Fixed a minor issue with rest api version 2021-10-28 22:39:01 +02:00
Ferdi Koomen
cce208e514 - Prefer media type order in spec 2021-10-28 21:30:52 +02:00
Ferdi Koomen
5a7c58873f - Fixed bundle when loading from url and resolving relative paths 2021-10-28 21:17:24 +02:00
Ferdi Koomen
2070f9599f - Added missing form data header 2021-10-28 20:57:31 +02:00
Ferdi Koomen
6e39d43e3d - Fixed form data examples 2021-10-28 20:49:28 +02:00
Ferdi Koomen
1a3eba4312 Fixed call to get content 2021-10-28 20:26:36 +02:00
Ferdi Koomen
1b82dee276 Merge branch 'master' into feature/test
# Conflicts:
#	src/openApi/v3/parser/getOperationResponse.ts
2021-10-28 15:54:46 +02:00
Ferdi Koomen
433b4f1b21 - Working on support for formData in v3 2021-10-28 15:51:39 +02:00
Ferdi Koomen
78d6876708 - Fixed issue #869 2021-10-27 20:34:47 +02:00
Ferdi Koomen
64a3dc2d7d - Small bug in open api spec v2 with composition 2021-10-27 12:44:15 +02:00
Ferdi Koomen
918d4844d9 - Fixed #868 where (newly) required properties from base models would not get specified 2021-10-26 18:31:38 +02:00
Ferdi Koomen
73acbca085 - Fixed formatting of models (comma vs semicolumn)
- Fixed issue #867 where nullable prop would not have correct type
2021-10-26 17:18:51 +02:00
Ferdi Koomen
63f59e6c39 - Fixed just in time cancelation scenario 2021-10-24 10:55:01 +02:00
Ferdi Koomen
2deaa4321e - Fixed undefined value 2021-10-20 08:59:23 +02:00
Ferdi Koomen
ea1406443b - Formatted code 2021-10-19 22:06:34 +02:00
Ferdi Koomen
1a777738f8 - Updated formatting of cancelable promise 2021-10-19 21:56:48 +02:00