Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Support multi-file schemas #715

Closed
axshani opened this issue Jan 1, 2023 · 2 comments
Closed

Support multi-file schemas #715

axshani opened this issue Jan 1, 2023 · 2 comments
Labels
✨ enhancement New feature or improvement 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec

Comments

@axshani
Copy link

axshani commented Jan 1, 2023

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.

@axshani axshani added the ✨ enhancement New feature or improvement label Jan 1, 2023
@dbanty dbanty changed the title Reference schemas Support multi-file schemas Jan 1, 2023
@dbanty dbanty added this to To do in OpenAPI 3.0 Compliance via automation Jan 1, 2023
@dbanty
Copy link
Collaborator

dbanty commented Jan 1, 2023

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

@thomas-fred
Copy link

I would appreciate this feature! 👍

@dbanty dbanty added the 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec label Aug 13, 2023
@openapi-generators openapi-generators locked and limited conversation to collaborators Aug 13, 2023
@dbanty dbanty converted this issue into discussion #804 Aug 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
✨ enhancement New feature or improvement 🍭 OpenAPI Compliance Supporting a new bit of the OpenAPI spec
Projects
No open projects
Development

No branches or pull requests

3 participants