kota65535 / openapi-merger

Merges multiple OpenAPI document files into a single file.
MIT License
32 stars 7 forks source link

[question] how to use #91

Open filipe-silva opened 1 year ago

filipe-silva commented 1 year ago

Hi, so I'm racking my brain but I can't figure out what I'm doing wrong.. I want to merge the yaml v1 and v2 from this openapi: https://api-docs.firefly-iii.org/

However when i use this on cli:

openapi-merger -i api-yaml/firefly-iii-2.0.4-v1.yaml -i api-yaml/firefly-iii-2.0.4-v2.yaml -o api-yaml/firefly-iii-2.0.4.yaml

Only the v2 is on the output.

Can you please help me?

kota65535 commented 1 year ago

Here is an example that merges paths of 2 OpenAPI documents. You can also configure prefixes and filter paths to be merged.

This tool is mainly focused on merging separated files referred to using $ref into a single file, so openapi-merge-cli might be more suitable if you want to simply merge multiple OpenAPI documents.