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 url-compound-parameter #87

Open
fklebert opened this issue Oct 7, 2022 · 0 comments
Open

Support url-compound-parameter #87

fklebert opened this issue Oct 7, 2022 · 0 comments
Labels
C++ 🐺 This issue affects the zswag C++ client. OpenAPI 🌍 This issue improves OpenAPI compliance. Python 🐍 This issue affects the zswag Python client. Server 🧮 This issue affects the zswag server.

Comments

@fklebert
Copy link
Contributor

fklebert commented Oct 7, 2022

At the moment, https://github.com/ndsev/zswag#url-compound-parameter is not supported.
It would be handy to be able to use compound parts of the request object in a path for example.
For this we would need the possibility to get a URL encoded string of the compound object which we then can map to a certain piece of the path. So if it is only about a 100% match of a compound object (e.g. a header structure) that would work great, no need to flatten things further.
The actual problem that I would like to target is to be able to map a request object which consists out of a scalar ID and a more complex header structure to a path of /{id}/{url_encoded_blob}

My understanding of zswag as now is that I can only url-encode the complete request object so that the ID cannot be mapped individually which kind of affects the backend more than necessary in terms of deployment.

@josephbirkner josephbirkner added OpenAPI 🌍 This issue improves OpenAPI compliance. C++ 🐺 This issue affects the zswag C++ client. Python 🐍 This issue affects the zswag Python client. Server 🧮 This issue affects the zswag server. labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ 🐺 This issue affects the zswag C++ client. OpenAPI 🌍 This issue improves OpenAPI compliance. Python 🐍 This issue affects the zswag Python client. Server 🧮 This issue affects the zswag server.
Projects
None yet
Development

No branches or pull requests

2 participants