mirror of
https://github.com/openai/codex.git
synced 2026-11-14 14:49:31 +00:00
Serializing the eventmsg type to snake_case (#1709)
This was an abrupt change on our clients. We need to serialize as snake_case.
This commit is contained in:
1 parent
5ebb7dd34c
commit
19bef7659f
2 files changed
+2
-2
No files matched your search
@@ -280,7 +280,7 @@ pub struct Event {
|
||||
/// Response event from the agent
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, Display)]
|
||||
#[serde(tag = "type", rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "lowercase")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum EventMsg {
|
||||
/// Error while executing a submission
|
||||
Error(ErrorEvent),
|
||||
|
||||
Reference in new issue
Block a user