fix(OAS3): servers component update on definition change (#6280)

* fix(OAS3): servers component should use nextProps

* test(OAS3): cypress tests for selecting multiple servers

* test(OAS3): multiple server test with definition change
This commit is contained in:
Tim Lai
2020-07-31 16:22:17 -07:00
committed by GitHub
parent abcc3837e9
commit 22668ee8d3
4 changed files with 116 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
openapi: 3.0.2
servers:
- url: /test-url-switch-1
- url: /test-url-switch-2
info:
title: multi-server test, switch
version: 0.0.1
description: |-
a simple test to select different servers
paths:
/:
get:
summary: an operation
responses:
"200":
description: OK

View File

@@ -0,0 +1,16 @@
openapi: 3.0.2
servers:
- url: /test-url-1
- url: /test-url-2
info:
title: multi-server test
version: 0.0.1
description: |-
a simple test to select different servers
paths:
/:
get:
summary: an operation
responses:
"200":
description: OK