From 635805f041a7e93c2d659b954d224c47ebde935c Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Sep 2024 12:08:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=BC=E5=BC=8F=E8=B0=83=E6=95=B42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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'.", + } } - }, + } } }, )