Skip to content

Commit

Permalink
fix: Support enums in proto HTTP annotations (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
miraleung committed May 24, 2021
1 parent f44df21 commit f5c7b86
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ private static void checkHttpFieldIsValid(String binding, Message inputMessage,
Field field = inputMessage.fieldMap().get(binding);
boolean fieldCondition = !field.isRepeated();
if (!isBody) {
fieldCondition &= field.type().isProtoPrimitiveType();
fieldCondition &= field.type().isProtoPrimitiveType() || field.isEnum();
}
String messageFormat =
"Expected a non-repeated "
Expand Down

0 comments on commit f5c7b86

Please sign in to comment.