Utoipa with complex fields #887
Unanswered
squadgazzz
asked this question in
Q&A
Replies: 1 comment
-
At the moment the there are few ways to handle the external types. You can take a look at this comment and follow the links further for examples. #790 (comment) Hope this helps. And sorry for late reply, At the moment I am overwhelmed by life and I have literally no time nor working dev setup to maintain the project. 😞 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, from the provided examples, it is not clear how to use
utoipa
in the following scenario:Current API doc, which I am trying to regenerate with
utoipa
:Both
H160
andU256
are external types. What would be the best way to create a schema for theHashMap<H160, U256>
type without changing the prices field type(if possible)? I saw that wrappers are required, which would change the field type. Does any better workaround exist?Beta Was this translation helpful? Give feedback.
All reactions