[PHP] Add support for server variables in operations (#12982)

* [FEATURE] Support for server variables in operations

* [AUTOGENERATED] update samples

* [PHP] Added tests for server variables in operations
This commit is contained in:
Thomas Hansen
2022-08-03 18:15:51 +02:00
committed by GitHub
parent c9c0b6267f
commit 1e3a39b460
100 changed files with 1732 additions and 2936 deletions

View File

@@ -98,6 +98,21 @@ paths:
servers:
- url: http://petstore.swagger.io/v2
- url: http://path-server-test.petstore.local/v2
- description: test server with variables
url: "http://{server}.swagger.io:{port}/v2"
variables:
server:
default: petstore
description: target server
enum:
- petstore
- qa-petstore
- dev-petstore
port:
default: "80"
enum:
- "80"
- "8080"
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings