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

CompressionType and useIdiomaticEndpoints for Protobuf and Avro #101

Merged
merged 3 commits into from
Jul 4, 2019

Conversation

fedefernandez
Copy link
Contributor

@fedefernandez fedefernandez commented Jun 30, 2019

Relates to #85

@fedefernandez
Copy link
Contributor Author

@franciscodr FYI

@@ -136,6 +136,13 @@ object print {
case Identity => Right(Identity)
})

def idiomaticEndpoints: Printer[IdiomaticEndpoints] =
Printer {
case IdiomaticEndpoints(Some(pkg), true) => ", namespace = Some(\"" + pkg + "\"), methodNameStyle = Capitalize"
Copy link
Contributor

Choose a reason for hiding this comment

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

out of curiosity: is there no "default" Printer for Some or Option?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@AlvaroCaste I think I don't understand you, sorry. Could you please rephrase it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, you mean there is no case for Some + false? Fixed!

Copy link
Contributor

Choose a reason for hiding this comment

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

no, sorry, I got it wrong. I thought you were matching an Option and then I wondered if there would already be a Printer for it in order not to rewrite "Some(\"" + pkg + "\") (this happens when I've just skimmed it 😅 )

@fedefernandez fedefernandez marked this pull request as ready for review July 2, 2019 08:04
@fedefernandez fedefernandez changed the title Allows specifying idiomatic endpoints CompressionType and useIdiomaticEndpoints for Protobuf and Avro Jul 2, 2019
@fedefernandez
Copy link
Contributor Author

Ready for review

Copy link
Member

@pepegar pepegar left a comment

Choose a reason for hiding this comment

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

LGTM

@fedefernandez fedefernandez merged commit 265827b into master Jul 4, 2019
@fedefernandez fedefernandez deleted the ff/idiomatic branch July 4, 2019 09:21
BeniVF pushed a commit that referenced this pull request Jul 24, 2019
* Allows specifying idiomatic endpoints

* Allows sending the compression type and makes the test a prop

* Removes the print stack trace
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.

3 participants