graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Can not parse OpenAPI 3 specification for Actions

Open RaphaelBossek opened this issue 1 year ago • 3 comments

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:

  • https://github.com/RaphaelBossek/jira-server-edition-openAPIv3
  • https://developer.atlassian.com/server/jira/platform/rest/v10000/intro/ (direct link: https://dac-static.atlassian.com/server/jira/platform/jira_software_dc_10000_swagger.v3.json?_v=1.1009.0)

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 avatar Aug 30 '24 06:08 RaphaelBossek

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

manasag avatar Sep 04 '24 09:09 manasag

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

RaphaelBossek avatar Sep 05 '24 15:09 RaphaelBossek

Hi @RaphaelBossek,

Thank you for bringing this issue to our attention. It's great to hear that your query is working and you're unblocked. We’ll make sure to address the error reporting as well.

Varun-Choudhary avatar Sep 23 '24 07:09 Varun-Choudhary