mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Accept forceRefetch in plugin list requests (#34573)
## What changed - Add the optional `forceRefetch` boolean to `PluginListParams` and generated schemas. - Accept both omitted and enabled values without changing `plugin/list` behavior yet. - Cover deserialization of the enabled value in the protocol tests. GitOrigin-RevId: fd4145161e9779638bc0bf18118d5ab5b8478745
This commit is contained in:
1 parent
726689564a
commit
6ac68be6fe
15 files changed
+81
-2
No files matched your search
@@ -3354,6 +3354,22 @@ fn plugin_list_params_ignore_removed_force_remote_sync_field() {
|
||||
PluginListParams {
|
||||
cwds: None,
|
||||
marketplace_kinds: None,
|
||||
force_refetch: false,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn plugin_list_params_deserializes_force_refetch() {
|
||||
assert_eq!(
|
||||
serde_json::from_value::<PluginListParams>(json!({
|
||||
"forceRefetch": true,
|
||||
}))
|
||||
.unwrap(),
|
||||
PluginListParams {
|
||||
cwds: None,
|
||||
marketplace_kinds: None,
|
||||
force_refetch: true,
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -3370,6 +3386,7 @@ fn plugin_list_params_serializes_marketplace_kind_filter() {
|
||||
PluginListMarketplaceKind::SharedWithMe,
|
||||
PluginListMarketplaceKind::CreatedByMeRemote,
|
||||
]),
|
||||
force_refetch: false,
|
||||
})
|
||||
.unwrap(),
|
||||
json!({
|
||||
|
||||
Reference in new issue
Block a user