openapi_parser icon indicating copy to clipboard operation
openapi_parser copied to clipboard

Deserialize Unexploded Query Parameters

Open ChaelCodes opened this issue 2 years ago • 3 comments

Description

OpenAPI supports multiple methods of parameter deserialization. Documentation here: https://swagger.io/docs/specification/serialization/ In order to parse these comma-separated, pipe-delimited, and space-delimited arrays, we need to deserialize them according to the rules defined in the Parameter before checking them against the schema.

closes #122

This is a rough draft of a way that we could handle this to open the conversation. Let me know if you want anything changed, extracted, or additional test cases in a different location.

ChaelCodes avatar May 18 '23 20:05 ChaelCodes

👍

mattmanning avatar May 19 '23 15:05 mattmanning

Hi. Super cool that you are taking on fixing this problem in this library! I have build https://github.com/ahx/openapi_parameters which should be able to deserialize all variants of explode and style. It's used in another gem, but I think that it would be cool if openapi_parser would be capable to parse parameters as specified. So, since you are interested in this topic as well, maybe you want to take a look at openapi_parameters and see if it can be used here? I did not find the time to look into that so far. If that is not an option right now, I would love this PR to be merged. (👍🏼)

ahx avatar May 21 '23 20:05 ahx

@ota42y any feedback on this?

dpashkevich avatar Oct 18 '23 19:10 dpashkevich