Skip to content

Can I use this tool to merge two openapi specs? #12

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

Open
lezhnev74 opened this issue Jan 18, 2019 · 1 comment
Open

Can I use this tool to merge two openapi specs? #12

lezhnev74 opened this issue Jan 18, 2019 · 1 comment
Labels
question Further information is requested

Comments

@lezhnev74
Copy link

Hi!
Let's say that two people develop two independent API documents (each has standard openapi schema: openapi, info, paths). Does this tool merge these two files into a single openapi spec?

@francescobianco
Copy link
Member

Hi!

Yes, you can do it.
A possible approach is: create a file with include list

## marge-all-this-files.yml
$include: api-spec-from-jhon.yml
$include: api-spec-from-mark.yml
$include: api-spec-from-erik.yml

now run yamlinc

$ yamlinc marge-all-this-files.yml

@francescobianco francescobianco added the question Further information is requested label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants