File tree Expand file tree Collapse file tree 3 files changed +27
-19
lines changed
tests/spec/data/path-params Expand file tree Collapse file tree 3 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ servers:
1313paths :
1414 ' /v1/organizations/{organizationId}/user ' :
1515 post :
16+ tags :
17+ - pets
1618 summary : ' Creates a user'
1719 requestBody :
1820 content :
@@ -53,15 +55,7 @@ paths:
5355 -
5456 BearerAuth : []
5557 parameters :
56- ' 1 ' :
57- name : organizationId
58- in : path
59- description : ' The Organization ID'
60- required : true
61- schema :
62- type : string
63- format : uuid
64- ' 0 ' :
58+ -
6559 name : api-version
6660 in : header
6761 description : ' The API version'
@@ -70,6 +64,14 @@ paths:
7064 type : string
7165 format : date
7266 example : ' 2021-05-18'
67+ -
68+ name : organizationId
69+ in : path
70+ description : ' The Organization ID'
71+ required : true
72+ schema :
73+ type : string
74+ format : uuid
7375 ' /v1/organizations/{organizationId}/user/{id} ' :
7476 get :
7577 summary : ' Gets a user'
@@ -99,15 +101,7 @@ paths:
99101 -
100102 BearerAuth : []
101103 parameters :
102- ' 1 ' :
103- name : organizationId
104- in : path
105- description : ' The Organization ID'
106- required : true
107- schema :
108- type : string
109- format : uuid
110- ' 0 ' :
104+ -
111105 name : api-version
112106 in : header
113107 description : ' The API version'
@@ -116,7 +110,15 @@ paths:
116110 type : string
117111 format : date
118112 example : ' 2021-05-18'
119- ' 2 ' :
113+ -
114+ name : organizationId
115+ in : path
116+ description : ' The Organization ID'
117+ required : true
118+ schema :
119+ type : string
120+ format : uuid
121+ -
120122 name : id
121123 in : path
122124 description : ' User'' s ID'
Original file line number Diff line number Diff line change @@ -210,6 +210,10 @@ public function getSerializableData()
210210 // case 2: Attribute type is an object (specified in attributes() by an array which specifies two items (key and value type)
211211 $ toObject = true ;
212212 }
213+ if ($ k === 'parameters ' ) {
214+ ksort ($ data [$ k ]);
215+ $ toObject = false ;
216+ }
213217 if ($ toObject ) {
214218 $ data [$ k ] = (object ) $ data [$ k ];
215219 }
Original file line number Diff line number Diff line change 66 - $ref : ' global.yaml#/components/parameters/OrganizationId'
77 post :
88 summary : Creates a user
9+ tags :
10+ - pets
911 security :
1012 - BearerAuth : []
1113 requestBody :
You can’t perform that action at this time.
0 commit comments