Skip to content

Commit

Permalink
apim_policy: updates patch body to use open schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
soufi committed Jan 25, 2024
1 parent a389e62 commit 0fd4d79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions spec/apim_policy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.0.0
openapi: 3.0.3
info:
title: API Manager Policy API
description: API Manager Policy API
Expand Down Expand Up @@ -304,7 +304,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ApimPolicyBody"
$ref: "#/components/schemas/ApimPolicyPatchBody"
responses:
'401':
$ref: '#/components/responses/UnauthorizedError'
Expand Down Expand Up @@ -737,8 +737,15 @@ components:
pointcutData:
$ref: "#/components/schemas/PointcutData"

ApimPolicyPatchBody:
type: object
description: >
is the same as ApimPolicyBody, but since we had some issue generating a struct that puts nil to pointcutData.
We chose to leave this unspecified for an optimum coverage.
PointcutData:
nullable: true
title: PointcutDataArray
type: array
items:
type: object
Expand Down

0 comments on commit 0fd4d79

Please sign in to comment.