question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Query Schemas

See original GitHub issue

I recently reported in issue #92 that I now no longer produce an OAS in Swagger 2.0 format but now produce one in OpenApi 3.0.1 format. :

swagger.txt

Even though I seem to get better results with that, the results are still somewhat disappointing when using OASGraph to generate the schema and trying to use the generated OAS in GraphiQL.

The following problems still occur:

  1. SearchOrders (and possibly others) is missing from the schema and docs even though it’s in the Swagger.json file.

  2. Also, as mentioned in issue #107 how can I get the docs to present the schema in alphabetical order?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
simaxcommented, Feb 21, 2019

Awesome, thanks guys. I just tried this out and it’s working well. Much appreciated!

1reaction
Alan-Chacommented, Feb 13, 2019

I think I know what the problem is!

In GraphQL, field names must be unique. In the OAS you provided, there are a few operations that will receive the same field name from OASGraph. They are the following:

  • /api/v1/settings/plans/{id} and /api/v1/settings/plans/current, which create a plan field
  • /api/v1/orders and /api/v1/orders/search, which create an orders field
  • /api/v1/categoriesand /api/v1/categories/search, which create a categories field

I think it’s bad that we don’t throw a warning so I’ll try to change that. Aside from that, it’s hard to say what’s the best way to move forward…

We could try to put some automatic mitigation in place… For example, we could append a number at the end of a duplicated field name. However, this can create other types of name collisions. I can go into more detail if you’d like.

Another method would be to define a new schema just so you can provide another name but this is a pretty ugly solution…

What do you think?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve issues with missing or incorrect schema ...
I have run into various cases where errors are occurring related to the DatabaseSchemaVersion property in the LSW_SYSTEM_SCHEMA table for the BPM and...
Read more >
To find Missing DB Objects from one schema,sid to other ...
Use a database link for one half of the MINUS, if necessary. This will not detect objects that have the same name and...
Read more >
Solved: Missing Schemas in Oracle - Alteryx Community
I am connected to an Oracle server. I can see some schemas and able to pull data. However, there are a lot of...
Read more >
Query condition missed key schema element - Stack Overflow
I have that item into my dynamodb · My table was built like this: · When I do that, it returns correctly ...
Read more >
Resolve schema differences in your queries | Atlassian Analytics
You need permission to manage the data source to remap columns. If Atlassian Analytics detects that a column no longer exists in your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found