Skip to content
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

Can not parse OpenAPI 3 specification for Actions #10520

Open
RaphaelBossek opened this issue Aug 30, 2024 · 2 comments
Open

Can not parse OpenAPI 3 specification for Actions #10520

RaphaelBossek opened this issue Aug 30, 2024 · 2 comments
Labels
c/console Related to console k/bug Something isn't working

Comments

@RaphaelBossek
Copy link

Version Information

Server Version: 2.43.0
CLI Version (for CLI related issue):

Environment

Docker Image: https://hub.docker.com/r/hasura/graphql-engine

What is the current behaviour?

$ref for parameters is not supported if you test the https://github.com/RaphaelBossek/jira-server-edition-openAPIv3

With the Atlassian V10 swagger JSON file, the error is "Invalid spec: Connot read properties of undefined (reading 'x-graphql-type-name')"

With https://the-guild.dev/graphql/mesh it just works.

What is the expected behaviour?

No error messages. No complains importing OpenAPI specifications.

How to reproduce the issue?

OpenAPI spec is not supported for following examples:

Screenshots or Screencast

No screenshot.

Please provide any traces or logs that could help here.

No trace files.

Any possible solutions/workarounds you're aware of?

No known workarround exist.

Keywords

openapi
actions
parser

@RaphaelBossek RaphaelBossek added the k/bug Something isn't working label Aug 30, 2024
@manasag manasag added the c/server Related to server label Sep 4, 2024 — with Linear
@manasag manasag added c/console Related to console v2 and removed c/server Related to server v2 labels Sep 4, 2024
@manasag
Copy link
Contributor

manasag commented Sep 4, 2024

Hi @RaphaelBossek, I tried with https://raw.githubusercontent.com/RaphaelBossek/jira-server-edition-openAPIv3/main/jira-server-openapi3.yaml
I see this validation error: Validation failed. /paths/rest/api/2/component/{id}/get is missing path parameter(s) for {id}. But I do see that the action is being created fine despite the error.
Other actions with $ref parameters are also being suggested correctly. Possible there some issue with the error reporting. Can you import all suggested actions and see if they work fine.
image

@RaphaelBossek
Copy link
Author

The error reporting ist annoying and missleading, but the query works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants