mirror of
https://github.com/openai/codex.git
synced 2026-11-03 00:21:31 +00:00
fix: allow unknown fields on Notice in schema (#10041)
the `notice` field didn't allow unknown fields in the schema, leading to issues where they shouldn't be. Now we allow unknown fields. <img width="2260" height="720" alt="image" src="https://github.com/user-attachments/assets/1de43b60-0d50-4a96-9c9c-34419270d722" />
This commit is contained in:
1 parent
a90ab789c2
commit
1609f6aa81
2 files changed
-2
No files matched your search
@@ -472,7 +472,6 @@ const fn default_true() -> bool {
|
||||
/// (primarily the Codex IDE extension). NOTE: these are different from
|
||||
/// notifications - notices are warnings, NUX screens, acknowledgements, etc.
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Default, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct Notice {
|
||||
/// Tracks whether the user has acknowledged the full access warning prompt.
|
||||
pub hide_full_access_warning: Option<bool>,
|
||||
|
||||
Reference in new issue
Block a user