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

single input file with directory #2

Open
displague opened this issue Jun 24, 2022 · 0 comments
Open

single input file with directory #2

displague opened this issue Jun 24, 2022 · 0 comments
Assignees

Comments

@displague
Copy link

Rather than recursively loading all files in a directory, an option should exist to merge a directory and a starting file. The existing behavior should also be retained.

For example:

public.yml
private.yml
public/components/schemas/foo.yml
public/components/paths/foo.yml
private/components/schemas.foo.yml
private/components/paths/foo.yml

With this layout, developers could potentially $ref: ../../public definitions in their private spec.
They may then wish to only generate the private or public spec:

oas_contrib merge --base=public.yml ./ outfile.yml
@MichinaoShimizu MichinaoShimizu self-assigned this Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants