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

Handle generating primitive types as responses #14

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Conversation

youngkidwarrior
Copy link
Contributor

No description provided.

Comment on lines +353 to +361
if (
distinctTypes->Set.size === 0 ||
!(
distinctTypes
->Set.values
->Iterator.toArrayWithMapper(t => String.includes(t, "response"))
->Array.includes(true)
)
) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a little comment about the logic here and why it is like it is?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does that sound?

Copy link
Owner

@zth zth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, nice work!

  1. Would you add a CHANGELOG?
  2. I suspect this fixes Returning just a bool does not yield proper result #12 as well. To verify, could you also add tests for: bool and string? Then we know we're covered.

@zth zth merged commit 04d6468 into zth:main Aug 22, 2024
1 check passed
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