Skip to content

Commit

Permalink
Make UniversalFlagConfigWire.format optional (#76)
Browse files Browse the repository at this point in the history
* Make UniversalFlagConfigWire.format optional

* Update eppo_core/src/ufc/models.rs

Co-authored-by: Oleksii Shmalko <[email protected]>

---------

Co-authored-by: Oleksii Shmalko <[email protected]>
  • Loading branch information
leoromanovsky and rasendubi authored Nov 27, 2024
1 parent f5e770e commit 3d19959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eppo_core/src/ufc/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pub type Timestamp = chrono::DateTime<chrono::Utc>;
pub(crate) struct UniversalFlagConfigWire {
/// When configuration was last updated.
pub created_at: Timestamp,
pub format: AssignmentFormat,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub format: Option<AssignmentFormat>,
/// Environment this configuration belongs to.
pub environment: Environment,
/// Flags configuration.
Expand Down

0 comments on commit 3d19959

Please sign in to comment.