Skip to content

Commit

Permalink
Make fields that are enum types required
Browse files Browse the repository at this point in the history
  • Loading branch information
rashadg1030 committed Aug 11, 2020
1 parent 1eb688b commit 52a8b88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Proto3/Suite/DotProto/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,9 @@ dotProtoMessageD ctxt parentIdent messageIdent messageParts = do
DotProtoMessageOneOf ident _ -> do
name <- dpIdentUnqualName ident
pure [(name, False)]
DotProtoMessageDefinition (DotProtoEnum _ ident _) -> do
name <- dpIdentUnqualName ident
pure [(name, True)]
_ -> do pure []

fieldss <- traverse getEither messageParts
Expand Down

0 comments on commit 52a8b88

Please sign in to comment.