Add #[serde(deny_unknown_fields)]
to action structs that didn't have it (#33679)
Release Notes: - N/A
This commit is contained in:
parent
c74ecb4654
commit
f022a13091
6 changed files with 16 additions and 1 deletions
|
@ -92,6 +92,7 @@ actions!(
|
|||
|
||||
#[derive(Default, Clone, PartialEq, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = agent)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct NewThread {
|
||||
#[serde(default)]
|
||||
from_thread_id: Option<ThreadId>,
|
||||
|
@ -99,6 +100,7 @@ pub struct NewThread {
|
|||
|
||||
#[derive(PartialEq, Clone, Default, Debug, Deserialize, JsonSchema, Action)]
|
||||
#[action(namespace = agent)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct ManageProfiles {
|
||||
#[serde(default)]
|
||||
pub customize_tools: Option<AgentProfileId>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue