Magento REST API Schema (Swagger) is not compatible with Search Criteria #7511
Labels
bug report
Component: Framework/Webapi
USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog
Issue: Cannot Reproduce
Cannot reproduce the issue on the latest `2.4-develop` branch
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Preconditions
Steps to reproduce
Expected result
Actual result
The Magento dev docs correctly describe REST API search criteria field groups and filters usage as needing an index per-field group / filter:
When viewing the generated Swagger documentation, search criteria is described as follows (without a numerical index):
Sending a request using
searchCriteria
in the format described by schema.json (without the numerical index) produces an HTTP 400 response. It also does not allow a user to define more than onefilterGroup
orfilter
, and breaks swagger-codegen clients.The current
searchCriteria
implementation doesn't appear to be compatible with the Open API Specification in the current format.The text was updated successfully, but these errors were encountered: