Missing Query Schemas
See original GitHub issueI 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. :
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:
-
SearchOrders (and possibly others) is missing from the schema and docs even though it’s in the Swagger.json file.
-
Also, as mentioned in issue #107 how can I get the docs to present the schema in alphabetical order?
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome, thanks guys. I just tried this out and it’s working well. Much appreciated!
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 aplan
field/api/v1/orders
and/api/v1/orders/search
, which create anorders
field/api/v1/categories
and/api/v1/categories/search
, which create acategories
fieldI 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?