Skip to content

Support multi-file schemas #715

Description

@axshani

Hello,
I'm new to OpenAPI and Schemas world so it could be possible that I'm doing something wrong.
I'm trying to add '#ref' to components in openapi.json to link to another file.

for example:
"components": {
"schemas": {
"User": {
"$ref": "./schemas/User"
}
}

And I'm getting the errors:
Remote references such as ././.. are not supported yet.
and Reference schemas are not supported.

Can I link schemas files some other way? I dont want to write all my schemas in the openapi.json file.
Thanks in advance the thank you for this project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions