-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
External reference is invalid when it appears in object properties #499
Comments
In the following patterns, everything works correctly. paths:
/foo:
get:
summary: get foo
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
id:
$ref: "./common/foo.yml" paths:
/foo:
get:
summary: get foo
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Foo"
components:
schemas:
Foo:
$ref: "./common/foo.yml" paths:
/foo:
get:
summary: get foo
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Foo"
components:
schemas:
Foo:
type: object
properties:
id:
$ref: "#/components/schemas/Bar"
Bar:
type: string |
It seems that #478 will resolve this issue. |
AnatolyRugalev
added a commit
to AnatolyRugalev/kin-openapi
that referenced
this issue
Jul 10, 2024
fenollp
pushed a commit
that referenced
this issue
Jul 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error occurs while loading spec file when references internal object definitions(defined in same file), and references external schema definitions in its properties.
some/dir/openapi.yml
some/dir/common/foo.yml
In this case, following errors occurs:
It seems that file paths is joined incorrectly.
The text was updated successfully, but these errors were encountered: