Skip to content

Commit ffa9277

Browse files
committed
fix(devcontainer): use snake case
1 parent a00242e commit ffa9277

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/src/devcontainer.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@ use serde::Serialize;
55
/// The Schema based on which the devcontainer.json file is generated.
66
/// For a complete documentation see: https://containers.dev/implementors/json_reference/
77
#[derive(Serialize)]
8+
#[serde(rename_all = "camelCase")]
89
pub struct DevContainer {
910
/// The name for the Dev Container
1011
name: String,
1112
/// The docker image that will be used to create the container.
1213
image: String,
1314
/// The username of the non-root user
14-
remoteUser: &'static str,
15+
remote_user: &'static str,
1516
/// The customizations applied to the container
1617
customizations: Customizations,
1718
}
@@ -47,7 +48,7 @@ impl From<NiksiConfig> for DevContainer {
4748
.course_code
4849
.map(|c| format!(" ({c})"))
4950
.unwrap_or_default(),
50-
remoteUser: "niksi",
51+
remote_user: "niksi",
5152
customizations: Customizations {
5253
vscode: VSCode {
5354
extensions: config.vscode_extensions,

0 commit comments

Comments
 (0)