Skip to content

Fix rest api #826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Fix rest api #826

wants to merge 7 commits into from

Conversation

Maschga
Copy link
Contributor

@Maschga Maschga commented Jun 23, 2025

Fix #823

⚠️ fix validation errors
✔️ add check to validate openapi spec

\cc @andig @naltatis

@andig
Copy link
Member

andig commented Jun 23, 2025

Nice! Hast Du rausgefunden, warum die operationIds anscheinend einen Unterschied machen?

@andig
Copy link
Member

andig commented Jun 23, 2025

Wäre https://github.com/getkin/kin-openapi nicht der bessere Validator?

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

See docs.

Ich denke, die wird die Library openapi-mcp brauchen.

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

Ich habe die Validierung von openapi-mcp genommen, weil du du wahrscheinlich auf die Funktionalität dieser Library aufbauen wirst.

@andig
Copy link
Member

andig commented Jun 23, 2025

Yep, aber erstmal gehts nur um Validierung, nicht um weiteres Tooling

operationId is an optional unique string used to identify an operation. If provided, these IDs must be unique among all operations described in your API.

Ich muss nochmal fragen: sind die Teil der Lösung oder optional?

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

operationId ist Teil der Lösung. Wenn dieser Parameter nicht bei allen Endpoints gegeben ist, wirft openapi-mcp einen Fehler.

Wenn es dir nicht wichtig ist, dass auch validiert wird, ob dieser Parameter bei allen Endpoints vorhanden ist, kann ich gerne auf deinen Validator wechseln.

@andig
Copy link
Member

andig commented Jun 23, 2025

Dann lass uns wechseln- openapi-mcp tut ohnehin nicht, was es soll und wird vstl. nicht Teil der Lösung sein. VIELEN DANK!

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

Wenn openapi-mcp nicht das macht was es soll und ersetzt werden soll, ist die Frage, ob die operationIDs immer noch wichtig sind und hinzugefügt werden sollten.

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

Bei #823 (comment) brauche ich von dir auch noch eine Antwort, bevor der PR gemergt wird.

@andig
Copy link
Member

andig commented Jun 23, 2025

Sind mir aktuell nicht wichtig!

@Maschga
Copy link
Contributor Author

Maschga commented Jun 23, 2025

Dann reverte ich den Commit mit den operationIDs. Wenn es noch wichtig wird, ist es sowieso mit dem Copilot innerhalb von Sekunden hinzugefügt. :D

This reverts commit 9fa7ecd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenAPI doesn't validate
3 participants