Skip to content

Commit

Permalink
Avoid using enum = null for older flatc versions (ubuntu 22.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristramg committed Feb 21, 2024
1 parent 0d36b01 commit b227f36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schema/lrs.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ table Node {
connections:[Connection] (required);
}

enum Endpoint : byte { Begin = 1, End = 2 }
enum Endpoint : byte { Unknown = 0, Begin = 1, End = 2 }
/// A connection links a node to a segment
table Connection {
properties:[Property];

segment_index:uint64;
/// A segment is oriented. The endpoint indicates what end of the segment is connected to the node
endpoint:Endpoint = null;
endpoint:Endpoint;
}

/// A traversal is a path in a network.
Expand Down Expand Up @@ -143,7 +143,7 @@ enum GeometryType : byte { Geographic = 1, Schematic = 2 }
table GeometryView {
properties:[Property];

geometry_type:GeometryType = null;
geometry_type:GeometryType = Geographic;
anchors:[AnchorGeometry] (required);
/// Must be the same size as the top level network array
networks:[NetworkGeometry] (required);
Expand Down

0 comments on commit b227f36

Please sign in to comment.