javanile / yamlinc

Compose multiple YAML files into one with $include tag. Split Swagger/OpenAPI into multiple YAML files.
MIT License
114 stars 24 forks source link

Reverse Merge #26

Open fcastanheira opened 4 years ago

fcastanheira commented 4 years ago

Hi, when i'm doing the merge of one yml fill to another one with another properties the yml file will always import in the end. ex: customer.yml type: customer name: John age: 30

users.yml $include: ./customer-yml api: server_url: xpto.api.com

the output of users.inc.yml will be:

api: server_url: xpto.api.com type: customer name: John age: 30

so is inverse to the place were i put the include.

How can i include for the order that i want?