forked from deepmap/oapi-codegen
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow binding types as parameters through
String()
methods (deepmap…
…#638) If trying to use a type, such as a UUID in a path parameter, we'd previously receive an error at runtime to say that `types.UUID` isn't supported. As this is a common use case, we should support it. Instead of adding support for it manually, we can instead look at whether the there's a `String` method, and if so use that to serialise the field.
- Loading branch information
Jamie Tanna
committed
Jun 29, 2022
1 parent
ac69f99
commit 650a2f4
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters