Skip to content
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

How can I ref another yaml #105

Closed
liaocyintl opened this issue Nov 30, 2021 · 2 comments
Closed

How can I ref another yaml #105

liaocyintl opened this issue Nov 30, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@liaocyintl
Copy link

Hi Team,

Thank you provide this plugin for us.
Just a question.
How can I ref. another yaml file just like,

requestBodies:
    Pet:
      content:
        application/json:
          schema:
            allOf:
            - $ref: 'other.yaml#/components/schemas/Pet'

I tried it and there was no error.
But it didn't show on the web page.

Thank you very much!

@rohit-gohri
Copy link
Owner

That isn't supported yet, this is open issue for that: #23
I plan to add it to next release, but that is not going to happen anytime soon.

The current solution to use some other cli to combine the schema first, and then build the docs

@rohit-gohri rohit-gohri added the duplicate This issue or pull request already exists label Dec 1, 2021
@rohit-gohri
Copy link
Owner

Closing this in favor of #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants