You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug: Prior to Kibana 7.9, the legacy import API (/api/kibana/dashboards/import) could be used without a "version" field in the body. When #69474 was released it appeared to have unintentionally marked the "version" field as required in the API route (due to changing from the Joi package to @kbn/config-schema). Joi defaults to optional but @kbn/config-schema defaults to required.
Kibana version: 7.9 and 7.10
Describe the bug: Prior to Kibana 7.9, the legacy import API (
/api/kibana/dashboards/import
) could be used without a "version" field in the body. When #69474 was released it appeared to have unintentionally marked the "version" field as required in the API route (due to changing from the Joi package to @kbn/config-schema). Joi defaults to optional but @kbn/config-schema defaults to required.Steps to reproduce:
and observe the error:
and observe that the command completed successfully.
Expected behavior: This API should not have added a required field in a minor release.
Any additional context: Viewing the code, it appears that this "version" field isn't even used anymore. It should be marked as optional.
The text was updated successfully, but these errors were encountered: