File tree Expand file tree Collapse file tree 5 files changed +24
-9
lines changed
test/Microsoft.OpenAPI.OData.Reader.Tests/Resources Expand file tree Collapse file tree 5 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 7777 <Property Name =" Name" Type =" Edm.String" />
7878 <Property Name =" IcaoCode" Type =" Edm.String" Nullable =" false" />
7979 <Property Name =" IataCode" Type =" Edm.String" />
80- <Property Name =" Location" Type =" Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" />
80+ <Property Name =" Location" Type =" Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation" >
81+ <Annotation Term =" Org.OData.Capabilities.V1.UpdateRestrictions" >
82+ <Record >
83+ <PropertyValue Property =" UpdateMethod" >
84+ <EnumMember >Org.OData.Capabilities.V1.HttpMethod/PUT</EnumMember >
85+ </PropertyValue >
86+ </Record >
87+ </Annotation >
88+ </Property >
8189 </EntityType >
8290 <ComplexType Name =" Location" >
8391 <Property Name =" Address" Type =" Edm.String" />
250258 <PropertyPath >Name</PropertyPath >
251259 </Collection >
252260 </Annotation >
261+ <Annotation Term =" Org.OData.Capabilities.V1.UpdateRestrictions" >
262+ <Record >
263+ <PropertyValue Property =" UpdateMethod" >
264+ <EnumMember >Org.OData.Capabilities.V1.HttpMethod/PUT</EnumMember >
265+ </PropertyValue >
266+ </Record >
267+ </Annotation >
253268 </EntitySet >
254269 <EntitySet Name =" Airports" EntityType =" Microsoft.OData.Service.Sample.TrippinInMemory.Models.Airport" >
255270 <NavigationPropertyBinding Path =" Location/EmergencyAuthority" Target =" People" />
Original file line number Diff line number Diff line change 180180 },
181181 "x-ms-docs-operation-type": "operation"
182182 },
183- "patch ": {
183+ "put ": {
184184 "tags": [
185185 "Airlines.Airline"
186186 ],
573573 }
574574 }
575575 },
576- "patch ": {
576+ "put ": {
577577 "summary": "Update property Location value.",
578578 "operationId": "Location.AirportLocation.UpdateAirportLocation",
579579 "consumes": [
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ paths:
118118 default:
119119 $ref: '#/responses/error'
120120 x-ms-docs-operation-type: operation
121- patch :
121+ put :
122122 tags:
123123 - Airlines.Airline
124124 summary: Update entity in Airlines
@@ -384,7 +384,7 @@ paths:
384384 $ref: '#/definitions/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation'
385385 default:
386386 $ref: '#/responses/error'
387- patch :
387+ put :
388388 summary: Update property Location value.
389389 operationId: Location.AirportLocation.UpdateAirportLocation
390390 consumes:
Original file line number Diff line number Diff line change 207207 },
208208 "x-ms-docs-operation-type": "operation"
209209 },
210- "patch ": {
210+ "put ": {
211211 "tags": [
212212 "Airlines.Airline"
213213 ],
648648 }
649649 }
650650 },
651- "patch ": {
651+ "put ": {
652652 "summary": "Update property Location value.",
653653 "operationId": "Location.AirportLocation.UpdateAirportLocation",
654654 "parameters": [
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ paths:
136136 default:
137137 $ref: '#/components/responses/error'
138138 x-ms-docs-operation-type: operation
139- patch :
139+ put :
140140 tags:
141141 - Airlines.Airline
142142 summary: Update entity in Airlines
@@ -433,7 +433,7 @@ paths:
433433 $ref: '#/components/schemas/Microsoft.OData.Service.Sample.TrippinInMemory.Models.AirportLocation'
434434 default:
435435 $ref: '#/components/responses/error'
436- patch :
436+ put :
437437 summary: Update property Location value.
438438 operationId: Location.AirportLocation.UpdateAirportLocation
439439 parameters:
You can’t perform that action at this time.
0 commit comments