Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has this project improved various implementations of the **style** and **explode** field in OpenAPI 3.0? #1906

Open
forksama opened this issue Sep 18, 2024 · 0 comments

Comments

@forksama
Copy link

Describe the feature request
style: Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form.

explode: When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false.

referring: https://swagger.io/specification/

What you are trying to do
As referring upon, when I want to use an object as a query parameter, i.e. with style == form and explode == false, an example could be www.127.0.0.1:8888/test?color=R,100,G,200,B,150 , I have read the source code and found that it seems impossible to implement a response to this situation.

In addition, when I want to use an object as a path parameter, when style == simple and explode == false, an example could be www.127.0.0.1:8888/test/R,100,G,200,B,150 , seems cannot be successfully identified either.

The solution you'd like
Perhaps the version I am currently using (5.11.1) is incorrect. Does any new version support the above features? If not, can it be updated accordingly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant