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

Support for deep object serialization in query string #526

Closed
betabandido opened this issue Sep 19, 2019 · 2 comments
Closed

Support for deep object serialization in query string #526

betabandido opened this issue Sep 19, 2019 · 2 comments

Comments

@betabandido
Copy link

I am using Gin to create an API that has one endpoint accepting a map as a querystring. This is described here:

https://github.com/gin-gonic/gin#map-as-querystring-or-postform-parameters

A map encoded in a query string (named map) looks like:

/endpoint?map[key1]=value1&map[key2]=value2

This concept seems to match what swagger specification refers to as "deep objects" (see https://swagger.io/docs/specification/describing-parameters/ and https://swagger.io/docs/specification/serialization/).

I believe swaggo does not support this yet. Is that correct? If so, are there any plans to add support for it?

@ubogdan
Copy link
Contributor

ubogdan commented Sep 20, 2019

All the links are for OpenAPI 3.0, swagger is OpenAPI 2.0 compliant.

@betabandido
Copy link
Author

Indeed. Closing this ticket in favor of #386

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

No branches or pull requests

2 participants