Support for OpenAPI `v3.1.0`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
調査の方向性
Start with the generate_api!("assets/openapi.json") entry point and reproduce the reported failure using the provided OpenAPI 3.1.0 document. Trace where the document version is validated, then verify that generation accepts 3.1.0 and produces compiling API bindings without the invalid-version error.
索引モデルが issue の本文から書いたものです。
説明
Hi team at Oxide Computer!
Thanks for such a cool library. I'm using progenitor to create API bindings for an OpenAPI compliant
server builded using utoipa to generate the OpenAPI spec from Rust
source code on build time.
When I attempt to generate API bindings with progenitor I get an error complaining about the OpenAPI
version if it is 3.1.0.
error: generation error for assets/openapi.json: unexpected or unhandled format in the OpenAPI document invalid version: 3.1.0
--> src/client/src/lib.rs:3:15
|
3 | generate_api!("assets/openapi.json");
| ^^^^^^^^^^^^^^^^^^^^^
error: could not compile `ipchat-client` (lib) due to 1 previous error
Here is the OpenAPI spec for reference:
OpenAPI Spec Example
{
"openapi": "3.1.0",
"info": {
"title": "IPChat API",
"description": "API for IPChat application",
"license": { "name": "MIT", "identifier": "MIT" },
"version": "0.0.0"
},
"paths": {
"api/v0/node": {
"get": {
"tags": ["node"],
"operationId": "nodeInfo",
"responses": {
"200": { "description": "Info retrieved successfully" },
"500": { "description": "Internal server error" }
}
}
},
"api/v0/user": {
"get": {
"tags": ["user"],
"operationId": "userRegister",
"responses": {
"201": { "description": "User registered successfully" },
"500": { "description": "Internal server error" }
}
}
}
},
"components": {
"schemas": {
"NodeObject": {
"type": "object",
"required": ["installPath", "clientIp", "localIp", "webSocketAddr"],
"properties": {
"clientIp": {
"type": "string",
"description": "Client's IP Address"
},
"installPath": {
"type": "string",
"description": "Installation path of the node"
},
"localIp": {
"type": "string",
"description": "Node's Local IP Address"
},
"webSocketAddr": {
"type": "string",
"description": "WebSocket Address"
}
}
}
}
},
"tags": [
{ "name": "node", "description": "Node Management" },
{ "name": "user", "description": "User Management" }
]
}
The code is open source so it can be checked out here: https://github.com/LeoBorai/ipchat
Thanks in advance!
- 主要言語
- Rust
- スター
- 1k
- フォーク
- 142
- 平均マージ
- 19時間 13分
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oxidecomputer/progenitor のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
oxidecomputer/progenitor#1345 ·
メンテナーはふだん 1 日以内に返信
-
Generated client treats a declared 304 Not Modified as UnexpectedResponse対応中かも @jjant が 6 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
oxidecomputer/progenitor#1462 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
oxidecomputer/progenitor#1457 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
oxidecomputer/progenitor#1444 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
oxidecomputer/progenitor#1382 ·
メンテナーはふだん 1 日以内に返信
oxidecomputer/progenitor の issue をすべて見る
似ている issue
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedオープンunconfirmed possible issue
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jerney-nexus/epikrise#364 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Yeachan-Heo/gajae-code#8058 ·
メンテナーはふだん 1 日以内に返信
-
bug daemon
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信