swagger文档废弃注解,使用xml注释
This commit is contained in:
parent
c9869fdd34
commit
904dec1c74
@ -174,7 +174,7 @@ public partial class IoTHttpApiHostModule
|
|||||||
|
|
||||||
return description.GroupName == docName;
|
return description.GroupName == docName;
|
||||||
});
|
});
|
||||||
options.EnableAnnotations(enableAnnotationsForInheritance: true, enableAnnotationsForPolymorphism: true); // 启用注解
|
//options.EnableAnnotations(enableAnnotationsForInheritance: true, enableAnnotationsForPolymorphism: true); // 启用注解
|
||||||
options.DocumentFilter<HiddenAbpDefaultApiFilter>();
|
options.DocumentFilter<HiddenAbpDefaultApiFilter>();
|
||||||
options.SchemaFilter<EnumSchemaFilter>();
|
options.SchemaFilter<EnumSchemaFilter>();
|
||||||
// 加载所有xml注释,这里会导致swagger加载有点缓慢
|
// 加载所有xml注释,这里会导致swagger加载有点缓慢
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user