📝 Description
In SystemStatus, dropins_mu_plugins is specified as an array, but WooCommerce
returns an object there, so GET /system_status can't be deserialized.
WooCommerce's get_dropins_mu_plugins() always returns:
array(
'dropins' => array(),
'mu_plugins' => array(),
)
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 5755 path $.dropins_mu_plugins
📌 Affected Specification Version
latest
❓ Issue Type
Incorrect Schema Definition
✅ Expected Behavior
use object instead of list
❌ Current Behavior
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 5755 path $.dropins_mu_plugins for java api client
🔄 Steps to Reproduce
No response
🛠️ Suggested Fix (if any)
change spec to:
dropins_mu_plugins:
type: object
description: Dropins and MU plugins.
ℹ️ Additional Info
No response
📝 Description
In
SystemStatus,dropins_mu_pluginsis specified as an array, but WooCommercereturns an object there, so
GET /system_statuscan't be deserialized.WooCommerce's
get_dropins_mu_plugins()always returns:com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 5755 path $.dropins_mu_plugins
📌 Affected Specification Version
latest
❓ Issue Type
Incorrect Schema Definition
✅ Expected Behavior
use object instead of list
❌ Current Behavior
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException:
Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 5755 path $.dropins_mu_plugins for java api client
🔄 Steps to Reproduce
No response
🛠️ Suggested Fix (if any)
change spec to:
dropins_mu_plugins:
type: object
description: Dropins and MU plugins.
ℹ️ Additional Info
No response