Skip to content

Commit

Permalink
Fix log_info as having nested objects
Browse files Browse the repository at this point in the history
  • Loading branch information
twojtasz committed Jul 8, 2019
1 parent 6f0e4ff commit 8cfc7b6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 281 deletions.
276 changes: 0 additions & 276 deletions modules/schema/proto/v2/session.proto

This file was deleted.

1 change: 0 additions & 1 deletion modules/schema/schema/session/log_info.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"id": "https://xviz.org/schema/session/log_info.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "XVIZ Metadata Log timing information",
"type": "object",
"properties": {
"start_time": {
"type": "number"
Expand Down
5 changes: 1 addition & 4 deletions modules/schema/schema/session/metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@
}
},
"log_info": {
"type": "object",
"additionalProperties": {
"$ref": "https://xviz.org/schema/session/log_info.json"
}
"$ref": "https://xviz.org/schema/session/log_info.json"
},
"map_info": {
"type": "object"
Expand Down
8 changes: 8 additions & 0 deletions xviz/v2/session.proto
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ message Metadata {
map<string, CameraInfo> cameras = 3;
map<string, string> stream_aliases = 4;
map<string, UIPanelInfo> ui_config = 5;
LogInfo log_info = 6;
}

message Error {
Expand Down Expand Up @@ -186,3 +187,10 @@ message UIPanelInfo {
repeated string needed_streams = 2;
string config = 3;
}

message LogInfo
{
option (xviz_json_schema) = "session/log_info";
double start_time = 1;
double end_time = 2;
}

0 comments on commit 8cfc7b6

Please sign in to comment.