Support for OpenAPI `v3.1.0`
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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!
- Lingua principale
- Rust
- Stelle
- 1k
- Fork
- 142
- Merge medio
- 19h 13m
- PR unite (30g)
- 16
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/progenitor
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
oxidecomputer/progenitor#1345 ·
I maintainer di solito rispondono entro 1 giorno
-
Generated client treats a declared 304 Not Modified as UnexpectedResponseForse già presa @jjant l’ha presa 6 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
oxidecomputer/progenitor#1462 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
oxidecomputer/progenitor#1457 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
oxidecomputer/progenitor#1444 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
oxidecomputer/progenitor#1382 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di oxidecomputer/progenitor
Issue simili
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedApertaunconfirmed possible issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jerney-nexus/epikrise#364 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Yeachan-Heo/gajae-code#8058 ·
I maintainer di solito rispondono entro 1 giorno
-
bug daemon
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno