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

  1. changed the title [-]Reference schemas[/-] [+]Support multi-file schemas[/+] on Jan 1, 2023
  2. dbanty commented on Jan 1, 2023

    @dbanty
    Collaborator

    Multi-file schemas are not yet supported by this generator unfortunately

  3. thomas-fred commented on Mar 10, 2023

    @thomas-fred

    I would appreciate this feature! 👍

  4. locked and limited conversation to collaborators on Aug 13, 2023
  5. converted this issue into a discussion #804 on Aug 13, 2023
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