From a73f0046d1110bf08462b62ae975026c5dfb67ec Mon Sep 17 00:00:00 2001 From: Oguz Kocer Date: Thu, 27 Nov 2025 13:12:31 -0500 Subject: [PATCH] Skip serializing null app_id in application password params WordPress 6.9-RC3 rejects `app_id: null` in the application-passwords endpoint, returning "Invalid parameter(s): app_id". This is a regression from previous versions where null was accepted. Changes: - Add `#[serde(skip_serializing_if = "Option::is_none")]` to `app_id` in `ApplicationPasswordCreateParams` and `ApplicationPasswordUpdateParams` --- wp_api/src/application_passwords.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp_api/src/application_passwords.rs b/wp_api/src/application_passwords.rs index 173e4cce6..cd300b213 100644 --- a/wp_api/src/application_passwords.rs +++ b/wp_api/src/application_passwords.rs @@ -53,6 +53,7 @@ pub struct IpAddress { pub struct ApplicationPasswordCreateParams { /// A UUID provided by the application to uniquely identify it. /// It is recommended to use an UUID v5 with the URL or DNS namespace. + #[serde(skip_serializing_if = "Option::is_none")] pub app_id: Option, /// The name of the application password. pub name: String, @@ -74,6 +75,7 @@ pub struct ApplicationPasswordDeleteAllResponse { pub struct ApplicationPasswordUpdateParams { /// A UUID provided by the application to uniquely identify it. /// It is recommended to use an UUID v5 with the URL or DNS namespace. + #[serde(skip_serializing_if = "Option::is_none")] pub app_id: Option, /// The name of the application password. pub name: String,