diff --git a/digital-twin-model/dtdl/dtmi/sdv/airbag_seat_massager-1.json b/digital-twin-model/dtdl/dtmi/sdv/airbag_seat_massager-1.json index 9d45c2f6..ee6e14f9 100644 --- a/digital-twin-model/dtdl/dtmi/sdv/airbag_seat_massager-1.json +++ b/digital-twin-model/dtdl/dtmi/sdv/airbag_seat_massager-1.json @@ -96,11 +96,6 @@ { "@id": "dtmi:sdv:massage_step;1", "@type": "Array", - "elementSchema": "dtmi:sdv:airbag_adjustments;1" - }, - { - "@id": "dtmi:sdv:airbag_adjustments;1", - "@type": "Array", "elementSchema": "dtmi:sdv:airbag_adjustment;1" }, { diff --git a/digital-twin-model/src/sdv_v2.rs b/digital-twin-model/src/sdv_v2.rs index ec6cfaaf..ae6f4597 100644 --- a/digital-twin-model/src/sdv_v2.rs +++ b/digital-twin-model/src/sdv_v2.rs @@ -134,15 +134,6 @@ pub mod airbag_seat_massager { pub duration_in_seconds: i32, } } - pub mod airbag_adjustments { - pub const ID: &str = "dtmi:sdv:airbag_seat_massager:airbag_adjustments;1"; - pub fn id() -> String { - ID.to_string() - } - pub const NAME: &str = "airbag_adjustments"; - pub const DESCRIPTION: &str = "The airbag adjustments."; - pub type TYPE = Vec; - } pub mod massage_step { pub const ID: &str = "dtmi:sdv:airbag_seat_massager:massage_step;1"; pub fn id() -> String { @@ -150,7 +141,7 @@ pub mod airbag_seat_massager { } pub const NAME: &str = "massage_step"; pub const DESCRIPTION: &str = "The massage step."; - pub type TYPE = Vec; + pub type TYPE = Vec; } pub mod status { pub const ID: &str = "dtmi:sdv:airbag_seat_massager:status;1"; diff --git a/samples/seat_massager/consumer/src/main.rs b/samples/seat_massager/consumer/src/main.rs index f55bc475..3b0a5fd2 100644 --- a/samples/seat_massager/consumer/src/main.rs +++ b/samples/seat_massager/consumer/src/main.rs @@ -61,11 +61,11 @@ fn start_seat_massage_steps( let request_payload: sdv::airbag_seat_massager::perform_step::request::TYPE = sdv::airbag_seat_massager::perform_step::request::TYPE { - step: vec![vec![sdv::airbag_seat_massager::airbag_adjustment::TYPE { + step: vec![sdv::airbag_seat_massager::airbag_adjustment::TYPE { airbag_identifier, inflation_level, duration_in_seconds, - }]], + }], ..Default::default() };