Forum Discussion
- HKosovaSmartBear Alumni (Retired)
Hi garymazz,
OpenAPI Specification only supports query strings that use name=value parameters. Since your query string does not have the "=" sign, it cannot be described using OpenAPI.
There's an existing enhancement request to add support for arbitrary query strings:
- garymazzNew Contributor
Hi HKosova
Thank you for the quick reply. I was suspect swagger couldn't handle non-k=v parameters, but was just checking to confirm.
Interestingly, I indepentedntly went down the same work around path in https://github.com/OAI/OpenAPI-Specification/issues/1502. Its been nearly 2 years since this issue was opened and there seems to be little movement on it.
I would hate to have to move to raml over this one feature (validation via regex), I'll have to write a code genererator for a c++ framework and one for spring boot.
However seeing no action was taken on this issue in 2 years, the raml route seems easier (more timely) than changing the OAS specification and code changes to swagger core, doumentation and scaffold generators.
Thanks
gary
Related Content
- 3 years ago
- 3 years ago
Recent Discussions
- 6 days ago
- 12 days ago