diff --git a/main.py b/main.py index a16345a..591598b 100644 --- a/main.py +++ b/main.py @@ -176,8 +176,9 @@ patent_patterns = [ responses={ 200: { "description": "成功示例", - "examples": { + "content": { "application/json": { + "example": { "标准号": "GB/T 1234-2020", "中文名称": "低热矿渣硅酸盐水泥", "英文名称": "Low-heat portland slag cement", @@ -190,14 +191,18 @@ patent_patterns = [ "起草人": "张三、李四", } }, + } + }, 400: { 'description': '错误示例', - "examples": { + "content": { "application/json": { - "detail": "Invalid file type. Please choose 'standard' or 'patent'.", + "example": { + "detail": "Invalid file type. Please choose 'standard' or 'patent'.", + } } - }, + } } }, )