diff --git a/test/data/valid_openapi/server_overriding.json b/test/data/valid_openapi/server_overriding.json new file mode 100644 index 0000000..76d2d45 --- /dev/null +++ b/test/data/valid_openapi/server_overriding.json @@ -0,0 +1,41 @@ +{ + "openapi": "3.0.2", + "info": { + "title": "Example", + "version": "2.0.0" + }, + "servers": [ + { + "url": "https://api.example.com" + } + ], + "paths": { + "/primary-domain/works": { + "get": { + "operationId": "get_authorize", + "summary": "Should keep the same domain", + "responses": { + "200": { + "description": "A response" + } + } + } + }, + "/secondary-domain/fails": { + "get": { + "operationId": "get_authorize", + "summary": "Should use the other domain", + "servers": [ + { + "url": "https://other-api.example.com" + } + ], + "responses": { + "200": { + "description": "A response" + } + } + } + } + } + } \ No newline at end of file