-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
@franciscodr FYI |
83505b1
to
c2f6324
Compare
@@ -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" |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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 😅 )
f222cbf
to
6beba09
Compare
6beba09
to
1c87924
Compare
Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Allows specifying idiomatic endpoints * Allows sending the compression type and makes the test a prop * Removes the print stack trace
Relates to #85