Replies: 1 comment 2 replies
-
Ah, for the enum type I see that I add the description by doc commenting the enum type itself. But I'm not sure what to do for in the case of field four. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
It seems that when I use an attribute like
#[serde(rename = ...)
or#[schema(value_type = ...)]
that the doc comments for each field are not used for the field descriptions in the generated openapi json file.My code looks something like:
But the created openapi.json only has the description for field two and three. Am I doing something wrong? Or maybe its due to the types of the field? Thanks
Beta Was this translation helpful? Give feedback.
All reactions