You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could someone help me understand why annotations are added to rename the model at the end of the structure? From my point of view, it would be more consistent if we had it at the top of the structure.
As you known, the comments at the top of a function is taken as the doc element, so does goparser.
But, it is a pity that goparser does not take the comments on the top of the type as its doc element.
That is to say, in the eyes of goparser, the comments above a type definition have nothing to do with the type.
Hello,
Could someone help me understand why annotations are added to rename the model at the end of the structure? From my point of view, it would be more consistent if we had it at the top of the structure.
https://github.com/swaggo/swag?tab=readme-ov-file#rename-model-to-display
From
To
The text was updated successfully, but these errors were encountered: