{ "openapi": "3.0.1", "info": { "version": "1.0.0", "title": "Test" }, "paths": { "/{parent}/resource/{name}": { "get": { "parameters": [ { "in": "path", "name": "name", "required": true, "schema": { "type": "string" } }, { "in": "path", "name": "parent", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/other" } } } } } } }, "/{parent}/resource/special": { "get": { "parameters": [ { "in": "path", "name": "parent", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/special" } } } } } } } }, "components": { "schemas": { "special": { "type": "object", "properties": { "special": { "type": "string" } } }, "other": { "type": "object", "properties": { "other": { "type": "integer" } } } } } }