Replies: 2 comments
-
Correct. The Ruby parser is right to report those extra root-level fields as errors. The GitLab definition can be made valid either by adding the paths:
# METADATA
/v4/metadata:
$ref: '#/x-metadata' # <---
# More...
x-metadata: # <---
get:
tags:
- metadata
# More stuff... or by replacing that structure with inline definitions: paths:
/v4/metadata:
get:
tags:
- metadata
# More stuff... |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was answered, closing. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently started to implement an OAI parser in D, and immediately hit an issue with my first test case, the Gitlab openapi.yml.
As it turns out, it has ref to the root of the document, outside of components (#2038):
This works with the swagger inspector but not with the ruby library, for example:
From reading the specs, this should not be allowed: the fields do not match the Specification Extensions and do not match the name of field in the
OpenAPI Object
.Could someone confirm that this is indeed a bug ?
Beta Was this translation helpful? Give feedback.
All reactions