Allow using RFC 6570 URL templates to specify parameter serialization settings #8316
-
|
Is your feature request related to a problem? Please describe. Describe the solution you'd like This would allow path parameters to support more complex formatting styles (the Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
I would prefer not to add custom logic that requires a special syntax inside of strings, when it can be handled in other ways. Special syntax in strings can't be checked for errors by editors, there's no completion, require complex custom logic, etc. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I'll admit that it wouldn't be a perfect solution. Ever though OpenAPI's serialisation options are based on that RFC, it adds a few options that would have to use a custom syntax, and the RFC seems more geared towards URL generation than URL parsing anyway, so a few of the template expansion styles don't look like they'd actually combine together. It seemed like a concise way of dealing with a number of issues with the current templating system, but I understand your recluance, especially regarding the use of characters that only make sense in the context of that spec. |
Beta Was this translation helpful? Give feedback.
-
|
I'll close this now, but feel free to add more comments or new issues 😄 |
Beta Was this translation helpful? Give feedback.
-
|
Assuming the original need was handled, this will be automatically closed now. But feel free to add more comments or create new issues or PRs. |
Beta Was this translation helpful? Give feedback.
Yeah, I'll admit that it wouldn't be a perfect solution. Ever though OpenAPI's serialisation options are based on that RFC, it adds a few options that would have to use a custom syntax, and the RFC seems more geared towards URL generation than URL parsing anyway, so a few of the template expansion styles don't look like they'd actually combine together.
It seemed like a concise way of dealing with a number of issues with the current templating system, but I understand your recluance, especially regarding the use of characters that only make sense in the context of that spec.