-
Notifications
You must be signed in to change notification settings - Fork 43
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
Overriding a primitive converter (UUID) #119
Comments
you can use a nullable uuid parameter, it uses 0 as a default if you don't allow it to be null. |
@Wicpar Won't that affect the API spec? If we would like to communicate to readers of the spec that the UUID is not optional, then is there an alternative solution? |
You are right, there is no way to throw an error doing that, the correct implementation would be to remove the try-catch and have an exception handler catch and build a proper error response |
@Wicpar As far as overriding default converter behavior, I'm assuming this is still a viable solution? Any plans to incorporate this? |
I'll accept the PR if you make one :) |
I'm hoping to override the default behavior of zeroing an invalid UUID string. (For example, I might prefer to throw an exception or return null.)
Does this constitute a new feature request?
The text was updated successfully, but these errors were encountered: