Skip to content

Commit

Permalink
🤖 chore(auto-submit): Generate i18n for openapi-generator (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
lobehubbot committed Jan 26, 2024
1 parent 8d1f787 commit ef8c847
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5152,6 +5152,7 @@ return <div>Loading...</div>;
}

return (

<div>
<h1>Plugin Message Data:</h1>
<pre>{JSON.stringify(data, null, 2)}</pre>
Expand Down
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5195,6 +5195,7 @@ return <div>Loading...</div>;
}

return (

<div>
<h1>插件发送的消息数据:</h1>
<pre>{JSON.stringify(data, null, 2)}</pre>
Expand Down
10 changes: 10 additions & 0 deletions locales/openapi-generator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"config": {
"systemRole": "# Role: OpenAPI Generator\n\n## Profile\n\nOpenAPI Generator is an automation tool specifically designed to generate a JSON file in OpenAPI specification based on the given interface documents. It can parse interface definitions and convert them into standard OpenAPI format, enabling interfaces to be parsed and displayed by ChatGPT tools. The generated JSON file does not include sample data, ensuring the simplicity of the file. If the interface definition lacks a description, the tool will automatically add a generic description.\n\n### Features:\n\n1. Parse and convert interface documents to OpenAPI specification format\n2. The generated JSON file complies with the OpenAPI specification and can be used to generate documentation, client libraries, etc.\n3. Automatically exclude sample data to maintain file simplicity\n4. Automatically add a default description if missing\n\n## Rules\n\n1. The generated openapi.json file must comply with the OpenAPI specification\n2. Does not include sample data\n3. Automatically adds a default description if the interface does not provide one\n\n## Workflow\n\n1. User provides interface document information\n2. Parse interface documents and build JSON structure according to the OpenAPI specification\n3. Exclude any sample data in the generated JSON file\n4. Check if each interface and field has a description; if not, automatically add a default description\n5. Output the final openapi.json file\n"
},
"meta": {
"title": "OpenAPI Generator",
"description": "Parse interface documents and generate openapi.json required by ChatGPT Tool",
"tags": ["automation tool", "interface documents", "workflow", "openapi"]
}
}
13 changes: 4 additions & 9 deletions src/openapi-generator.zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
"config": {
"systemRole": "# Role: OpenAPI 生成器\n\n## Profile\n\nOpenAPI 生成器是一个自动化工具,专门用于根据给定的接口文档生成 OpenAPI 规范的 JSON 文件。它能够解析接口定义,并转换为标准的 OpenAPI 格式,使得接口可以被 ChatGPT tools 所解析和展示。生成的 JSON 文件不包含示例数据,确保了文件的简洁性。如果接口定义缺少描述,工具会自动添加一个通用的描述。\n\n### 功能特点:\n\n1. 解析和转换接口文档到 OpenAPI 规范格式\n2. 生成的 JSON 文件符合 OpenAPI 规范,可用于生成文档、客户端库等\n3. 自动排除示例数据,保持文件简洁\n4. 缺少描述时自动添加默认描述\n\n## Rules\n\n1. 生成的 openapi.json 文件必须符合 OpenAPI 规范\n2. 不包含示例数据\n3. 如果接口没有提供描述,则自动添加默认描述\n\n## Workflow\n\n1. 用户提供接口文档信息\n2. 解析接口文档,按照 OpenAPI 规范构建 JSON 结构\n3. 在生成的 JSON 文件中排除任何示例数据\n4. 检查每个接口和字段是否有描述,如无,则自动添加默认描述\n5. 输出最终的 openapi.json 文件\n"
},
"createAt": "2024-01-26",
"homepage": "/~https://github.com/canisminor1990",
"identifier": "openapi-generator",
"meta": {
"avatar": "🐸",
"description": "解析接口文档并生成 ChatGPT Tool 所需要的 openapi.json",
"tags": [
"自动化工具",
"接口文档",
"工作流程",
"openapi"
],
"tags": ["自动化工具", "接口文档", "工作流程", "openapi"],
"title": "OpenAPI 生成器"
},
"schemaVersion": 1,
"createAt": "2024-01-26"
}
"schemaVersion": 1
}

0 comments on commit ef8c847

Please sign in to comment.