Skip to content

Commit

Permalink
Adding path to metadata
Browse files Browse the repository at this point in the history
Otherwise quite useless if you request data with wildcard
  • Loading branch information
erikbosch committed Nov 29, 2024
1 parent f633f47 commit c99be7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions databroker/src/grpc/kuksa_val_v2/conversions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ impl From<&broker::Metadata> for proto::Metadata {
fn from(metadata: &broker::Metadata) -> Self {
proto::Metadata {
id: metadata.id,
path: metadata.path.clone(),
data_type: proto::DataType::from(metadata.data_type.clone()) as i32,
entry_type: proto::EntryType::from(metadata.entry_type.clone()) as i32,
description: metadata.description.clone(),
Expand Down
4 changes: 4 additions & 0 deletions proto/kuksa/val/v2/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ enum ErrorCode {
}

message Metadata {

// Full dot notated path for the signal
string path = 9;
// ID field
int32 id = 10;

Expand Down Expand Up @@ -110,6 +113,7 @@ message Metadata {
Value allowed_values = 17; // Must be of array type
Value min = 18;
Value max = 19;

}

// VSS Data type of a signal
Expand Down

0 comments on commit c99be7b

Please sign in to comment.