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
fec6534b91
Fixed enum for V2
...
Bumped version
2022-02-25 22:25:38 +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
eedadee59e
Merge branch 'master' of github.com:ferdikoomen/openapi-typescript-codegen
2022-02-25 11:47:31 +01:00
Ferdi Koomen
b32c85e4eb
- Fixed quotes in enums
...
- Fixed better default operation name
- Fixed unittest
2022-02-25 11:47:24 +01:00
Ferdi Koomen
54d1bfef2b
Merge pull request #965 from nikopavlica/fix-dictionary-composition
...
Fixes a bug that prevented using complex dictionaries within compositions
2022-02-25 11:45:47 +01:00
Ferdi Koomen
ec2c712901
Switched to NPM
2022-02-11 11:34:48 +01:00
Niko Pavlica
c88f506be9
Fixes a bug that prevented using complex dictionaries within compositions.
2022-02-09 22:04:42 +01:00
Slava Obukhov
14b4906e3b
Fix tests for empty model properties that are valid in OpenAPI
2022-02-09 18:33:59 +01:00
Slava Obukhov
e3421ddcd2
Add support for empty model properties that are valid in OpenAPI
2022-02-09 17:56:52 +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
Ferdi Koomen
b7a0f8d0eb
- Short notation for properties passed through constructor
2022-01-26 20:20:10 +01:00
Ferdi Koomen
c9b4b7ef1d
Merge branch 'master' into feature/angular
2022-01-26 20:17:38 +01:00
Ferdi Koomen
4637325b0a
- Shorter writing style for props passed in constructors
...
- Simplified header creation
- Made helper scripts for test more reasable
2022-01-26 20:15:50 +01:00
Ferdi Koomen
ff4544c082
- Working e2e tests
2022-01-26 19:31:51 +01:00
Ferdi Koomen
de4d115329
- Working Angular tests
2022-01-26 19:03:06 +01:00
Ferdi Koomen
896f0b624c
- Working angular test environment
2022-01-26 18:15:07 +01:00
Ferdi Koomen
5a8c2a4d36
Merge branch 'master' into feature/angular
2022-01-26 13:27:20 +01:00
Ferdi Koomen
ca09ad5367
- Removed dependency if URLSearchParams
2022-01-26 11:32:18 +01:00
Ferdi Koomen
a159e77245
- Fixed issue #940
2022-01-26 10:25:08 +01:00
Ferdi Koomen
09e6c5f4cc
- Working on e2e tests for angular
2022-01-25 20:43:12 +01:00
Ferdi Koomen
1d8dc54d94
- Added WIP Angular client
2022-01-25 20:02:53 +01:00
Ferdi Koomen
9424a7b240
- Updated PR with master branch
2022-01-25 17:29:55 +01:00
Ferdi Koomen
b2d8096031
- Added e2e test
...
- Cleanup of new export client logic
2022-01-25 15:32:20 +01:00
Ferdi Koomen
5f58982210
- Working solution for export client
2022-01-25 14:37:41 +01:00
Ferdi Koomen
e1268b197a
- Working HttpClient exporter
2022-01-25 13:34:23 +01:00
Ferdi Koomen
83a0692b10
- Adding util to get HttpRequestName
2022-01-25 13:22:59 +01:00
Ferdi Koomen
280d196f99
- Moved to const definitions for functions
2022-01-25 13:22:21 +01:00
Ferdi Koomen
c6c9d2b879
- Added output of httpRequest files
2022-01-25 12:31:24 +01:00
Ferdi Koomen
7b4352c48f
- Added write client class methods
2022-01-25 12:15:37 +01:00
Ferdi Koomen
d0900cee8c
- Added client and HttpRequest files
2022-01-25 11:52:07 +01:00