Skip to content

Commit

Permalink
IPROTO-356 Add type id info for enums to proto.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
tristantarrant authored and ryanemerson committed Jul 3, 2024
1 parent 5f1939a commit 6101e71
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ private static void writeEnum(JsonGenerator j, EnumDescriptor ed) throws IOExcep
} else {
j.writeStringField("name", ed.getName());
}
if (ed.getTypeId() != null) {
j.writeNumberField("type_id", ed.getTypeId());
}
j.writeFieldName("enum_fields");
j.writeStartArray();
for (EnumValueDescriptor ev : ed.getValues()) {
Expand Down

0 comments on commit 6101e71

Please sign in to comment.