-
Hi @juhaku thank you for your hard work, I really admire the work you've done. responses(
(
status = 200, description = "...", body = FooSchema,
example = json!{FooSchema::example()}
// | ^^^^^^^^^^^^^^^^^^^^^^
// |____^ Here
)
), |
Beta Was this translation helpful? Give feedback.
Answered by
juhaku
Feb 19, 2023
Replies: 1 comment
-
Hi, Simply put, there is no way to do that, unfortunately. Currently the only way to provide example is to call To implement this support will need some thinking but perhaps could be added in future. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheAwiteb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
And thanks, 🙂
Simply put, there is no way to do that, unfortunately. Currently the only way to provide example is to call
json!
with new object or with json syntax itself the same way one would callserde_json::json!(...)
.To implement this support will need some thinking but perhaps could be added in future.