Skip to content

Commit 7808634

Browse files
authored
fix: improve request body / content-type handling (#349)
- instead of using the first `requestBody` `content-type`, search for the first supported one. - when none are currently supported, output a `never` type, and a `todo` comment to make this clear to the user. - subsequent changes to support for `text/plain`, `application/x-www-form-urlencoded`, `application/octet-stream` and `multipart/form-data` are planned to follow reasonably quickly, but they might not become supported for every template at once, and this feels like a fairer representation - also start cleaning integration tests before generation
1 parent 91a9939 commit 7808634

File tree

69 files changed

+29743
-204471
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+29743
-204471
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.1.0
1+
24.4.1

e2e/src/generated/client/axios/client.ts

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/src/generated/client/fetch/client.ts

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-tests/typescript-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "typescript-angular",
2+
"name": "@integration/typescript-angular",
33
"version": "0.0.0",
44
"scripts": {
55
"clean": "rm -rf ./dist && rm -rf ./src/generated",

0 commit comments

Comments
 (0)