Skip to content

Commit

Permalink
typo in spec implementation
Browse files Browse the repository at this point in the history
- subcomponent is always full lowercase

Signed-off-by: mimir-d <[email protected]>
  • Loading branch information
mimir-d committed Oct 8, 2024
1 parent 358dde8 commit 9ee1769
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ pub struct MeasurementSeriesStart {
#[serde(rename = "hardwareInfoId")]
pub hardware_info: Option<HardwareInfo>,

#[serde(rename = "subComponent")]
#[serde(rename = "subcomponent")]
pub subcomponent: Option<Subcomponent>,

#[serde(rename = "metadata")]
Expand Down
18 changes: 9 additions & 9 deletions tests/output/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ async fn test_step_with_measurement_series() -> Result<()> {
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down Expand Up @@ -805,7 +805,7 @@ async fn test_step_with_multiple_measurement_series() -> Result<()> {
"name": "name",

"unit": null,
"subComponent": null,
"subcomponent": null,
"metadata": null,
"validators": null,
"hardwareInfoId": null,
Expand Down Expand Up @@ -833,7 +833,7 @@ async fn test_step_with_multiple_measurement_series() -> Result<()> {
"name": "name",

"unit": null,
"subComponent": null,
"subcomponent": null,
"metadata": null,
"validators": null,
"hardwareInfoId": null,
Expand Down Expand Up @@ -888,7 +888,7 @@ async fn test_step_with_measurement_series_with_details() -> Result<()> {
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down Expand Up @@ -954,7 +954,7 @@ async fn test_step_with_measurement_series_with_details_and_start_builder() -> R
"key": "value"
},
"name": "name",
"subComponent": {
"subcomponent": {
"name": "name",

"type": null,
Expand Down Expand Up @@ -1029,7 +1029,7 @@ async fn test_step_with_measurement_series_element() -> Result<()> {
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down Expand Up @@ -1095,7 +1095,7 @@ async fn test_step_with_measurement_series_element_index_no() -> Result<()> {
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down Expand Up @@ -1195,7 +1195,7 @@ async fn test_step_with_measurement_series_element_with_metadata() -> Result<()>
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down Expand Up @@ -1264,7 +1264,7 @@ async fn test_step_with_measurement_series_element_with_metadata_index_no() -> R
"unit": null,
"hardwareInfoId": null,
"metadata": null,
"subComponent": null,
"subcomponent": null,
"validators": null,
}
},
Expand Down

0 comments on commit 9ee1769

Please sign in to comment.