Describe the PR
In https://github.com/swaggo/swag/pull/1866 PR, the SchemaName field added to TypeSpecDef struct is not set for function scoped types. This PR sets TypeSpecDef.SchemaName for function scoped types too.
Also added some tests for the cases this PR fixes.
Describe the PR In https://github.com/swaggo/swag/pull/1866 PR, the
SchemaName
field added toTypeSpecDef
struct is not set for function scoped types. This PR setsTypeSpecDef.SchemaName
for function scoped types too.Also added some tests for the cases this PR fixes.
Relation issue fixes #1882