feat: 优化swagger

This commit is contained in:
caoqianming 2024-10-11 16:34:53 +08:00
parent 635805f041
commit a70ac00bd9
1 changed files with 16 additions and 17 deletions

View File

@ -191,19 +191,18 @@ patent_patterns = [
"起草人": "张三、李四", "起草人": "张三、李四",
} }
}, },
} },
}, },
400: { 400: {
'description': '错误示例', "description": "错误示例",
"content": { "content": {
"application/json": { "application/json": {
"example": { "example": {
"detail": "Invalid file type. Please choose 'standard' or 'patent'.", "detail": "Invalid file type. Please choose 'standard' or 'patent'.",
} }
} }
} },
} },
}, },
) )
async def extract_info( async def extract_info(