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
First, thank you so much for building an amazing library! It has helped us a lot in development of our new API, since we started with a documentation-driven approach. It allows us to ensure our implementation matches our spec. Please forgive me if this is a duplicate but I couldn't find it in your issue history.
We have some query parameters for an index operation that are defined as "filters" with a nested key for the attribute being filtered on. An example is GET /api/v1/events?filter[slug]=%2Ftest. Rack's Query Parser implementation turns the above into this params hash:
Thank you for reporting!
A little more question, how do you describe the parameters in the OpenAPI definition?
Since there is a style: deepObject in the Parameter Object of OpenAPi 3, it may be possible to express it.
(If this example is intended and validation fails, it's a bug) https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#style-examples
First, thank you so much for building an amazing library! It has helped us a lot in development of our new API, since we started with a documentation-driven approach. It allows us to ensure our implementation matches our spec. Please forgive me if this is a duplicate but I couldn't find it in your issue history.
We have some query parameters for an index operation that are defined as "filters" with a nested key for the attribute being filtered on. An example is
GET /api/v1/events?filter[slug]=%2Ftest
. Rack's Query Parser implementation turns the above into this params hash:And then we get the following validation error:
Since it is a Rack specific behavior I didn't think this issue belonged in the
openapi_parser
library.Thanks again!
The text was updated successfully, but these errors were encountered: