Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dynamite): use http.Request in generated code #1707

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

Leptopoda
Copy link
Member

The last remaining piece of #1580

@provokateurin
Copy link
Member

Shouldn't it be possible now to put the serializer into the request? Or do you think that mixes the layers too much?

@Leptopoda
Copy link
Member Author

Do you mean similar to the validStatuses?

I think this is to much mixing. Although I have to admit that the validStatuses shouldn't be there either

@provokateurin
Copy link
Member

Yeah, and I somewhat agree that the validation should not be in the request.

@Leptopoda
Copy link
Member Author

So should we move the status code matching into the serializer?
Let it throw if the encountered status code is not valid?

@Leptopoda
Copy link
Member Author

This might also make sense long term if we want to allow different response schemas per status code.
I don't know how this would look in detail but it's more fitting there.

@provokateurin
Copy link
Member

That sounds good and should help with supporting multiple status codes 👍

@Leptopoda Leptopoda force-pushed the feat/dynamite/dynamite_request branch from 3ae463d to f6e60fd Compare March 9, 2024 07:04
@Leptopoda Leptopoda force-pushed the feat/dynamite/dynamite_request branch from f6e60fd to 2f307d1 Compare March 9, 2024 07:07
@Leptopoda Leptopoda changed the title feat(dynamite_runtime): add DynamiteRequest feat(dynamite): use http.Request in generated code Mar 9, 2024
@Leptopoda Leptopoda force-pushed the feat/dynamite/dynamite_request branch from 2f307d1 to 26917bd Compare March 9, 2024 07:30
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
@Leptopoda Leptopoda force-pushed the feat/dynamite/dynamite_request branch from d3b6cfa to c9d0b24 Compare March 9, 2024 09:37
@provokateurin provokateurin merged commit a29e9f9 into main Mar 9, 2024
8 checks passed
@provokateurin provokateurin deleted the feat/dynamite/dynamite_request branch March 9, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants