Merge multiple OpenAPI documents into one reviewable API description.
Documents are parsed and merged by paths, operations, components, tags, and servers; conflicts use selected precedence or are reported. Local references remain local unless explicitly rewritten.
Input1: {"openapi":"3.0.3","info":{"title":"Users API","version":"1.0.0"},"paths":{"/users":{"get":{"summary":"List users"}}}}
Input2: {"openapi":"3.0.3","info":{"title":"Posts API","version":"1.0.0"},"paths":{"/posts":{"get":{"summary":"List posts"}}}}
{
"openapi": "3.0.3",
"info": {
"title": "Users API + Posts API",
"version": "1.0.0",
"description": ""
},
"paths": {
"/users": {
"get": {
"summary": "List users"
}
},
"/posts": {
"get": {
"summary": "List posts"
}
}
}
}
API gateways, developer portals, and shared service specs merge OpenAPI documents.