Skip to content

Commit

Permalink
editoast: update enums to use SCREAMING_SNAKE_CASE for consistency
Browse files Browse the repository at this point in the history
Signed-off-by: hamz2a <[email protected]>
  • Loading branch information
hamz2a committed Feb 19, 2025
1 parent 452bed2 commit 48e3c2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion editoast/editoast_schemas/src/infra/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ editoast_common::schemas! {
}

#[derive(Debug, Clone, Copy, Deserialize, Serialize, PartialEq, Eq, Hash, ToSchema)]
#[serde(rename_all = "UPPERCASE")]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum Endpoint {
Begin,
End,
Expand Down
2 changes: 1 addition & 1 deletion editoast/editoast_schemas/src/infra/side.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ editoast_common::schemas! {

#[derive(Debug, Derivative, Clone, Deserialize, Serialize, PartialEq, Eq, ToSchema)]
#[derivative(Default)]
#[serde(rename_all = "UPPERCASE")]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum Side {
Left,
Right,
Expand Down
2 changes: 1 addition & 1 deletion editoast/src/models/work_schedules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl From<model::Error> for WsGroupError {
}

#[derive(Debug, Default, Clone, Copy, Serialize, Deserialize, FromRepr, ToSchema, PartialEq)]
#[serde(rename_all = "UPPERCASE")]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum WorkScheduleType {
#[default]
Catenary,
Expand Down

0 comments on commit 48e3c2d

Please sign in to comment.