139 Commits

Author SHA1 Message Date
Marek Lukáš
43a5786c92 Changed imports a bit to stop closer match project style 2024-03-02 15:55:42 +01:00
Marek Lukáš
15fa2ac61a Fixed issue 2052
Both of these had to be made together to pass our tests
1. always pass absolute url to json-schema-ref-parser
2. update json-schema-ref-parser to v11.1.0
2024-03-02 15:42:12 +01:00
Ferdi Koomen
2bfeefa61c Updated promise resolving to Promise.all() and switched to new json-schema-ref-parser 2023-11-14 10:20:55 +01:00
Ferdi Koomen
432cd26fbc Fixed package lock and formatted code 2023-07-28 12:20:01 +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
Ferdi Koomen
fd93a764bf Fixed build issue 2023-04-10 13:47:30 +02:00
Ferdi Koomen
8b52a04617 Updated dependencies, cleanup 2023-04-10 12:38:21 +02:00
Ferdi Koomen
cf4f2f92f6
Merge branch 'master' into add-model-postfix 2022-10-28 10:37:34 +02:00
Maarten Van Hoof
3927dc6220 Fix pattern single quote escaping 2022-10-03 13:11:48 +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
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
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
75a648cc4e - Added support for the Angular client with --name parameter 2022-02-07 18:16:11 +01:00
Ferdi Koomen
8e05e64a72 - Fixed Angular client 2022-01-28 00:19:01 +01:00
Ferdi Koomen
5a8c2a4d36 Merge branch 'master' into feature/angular 2022-01-26 13:27:20 +01:00
Ferdi Koomen
a159e77245 - Fixed issue #940 2022-01-26 10:25:08 +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
15f7955ce4 - Working indentation 2022-01-25 10:16:09 +01:00
Ferdi Koomen
6f2a714a15 - Working on formatter for spacing 2022-01-25 00:00:47 +01:00
Ferdi Koomen
975d44e27b - Adding wip for Angular client 2022-01-24 23:01:23 +01:00
Ferdi Koomen
9049afd509 - Updated parsing of comments 2022-01-24 17:47:03 +01: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
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
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
Sjoerd Mulder
9680e9c744 Allow FormData as body argument 2021-12-21 14:24:00 +01:00
Sjoerd Mulder
a543b9d490 Adding discriminator support for oneOf 2021-12-21 14:05:19 +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
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
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
5a7c58873f - Fixed bundle when loading from url and resolving relative paths 2021-10-28 21:17:24 +02:00
Ferdi Koomen
433b4f1b21 - Working on support for formData in v3 2021-10-28 15:51:39 +02:00
Ferdi Koomen
63f59e6c39 - Fixed just in time cancelation scenario 2021-10-24 10:55:01 +02:00
Ferdi Koomen
d7c153ff55 Merge branch 'master' into feature/cancelable
# Conflicts:
#	README.md
#	package.json
#	src/utils/registerHandlebarTemplates.ts
#	test/__snapshots__/index.spec.js.snap
#	test/custom/request.ts
#	test/e2e/v3.fetch.spec.js
#	test/e2e/v3.node.spec.js
#	yarn.lock
2021-10-18 22:19:36 +02:00
Ferdi Koomen
92ad2ae772 - Removed yaml loader in favor of refparser 2021-10-11 14:23:12 +02:00