Why does returning UUID lead to a compilation error? #534
-
I have an endpoint which upon creation of a resource returns the
But when I try to build, it fails with the following errors
My cargo entry is
And I made sure to enable the Any reason why? |
Beta Was this translation helpful? Give feedback.
Answered by
finlaydotb
Mar 16, 2023
Replies: 1 comment
-
Ok, the problem was trying to return a blanket so this worked
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
finlaydotb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, the problem was trying to return a blanket
Uuid
. The way to go is to returnpoem_openapi::Json<Uuid>
instead and not just a blanketUuid
.so this worked