Add the existing route to openapi schema (#87196)

This commit is contained in:
John Schulz 2021-01-04 15:23:28 -05:00 committed by GitHub
parent 7dc7ac5303
commit a0b4aa35b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 0 deletions

View file

@ -1274,6 +1274,15 @@
"put": {
"summary": "PackagePolicies - Update",
"operationId": "put-packagePolicies-packagePolicyId",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/update_package_policy"
}
}
}
},
"responses": {
"200": {
"description": "OK",
@ -2077,6 +2086,22 @@
"download",
"path"
]
},
"update_package_policy": {
"title": "UpdatePackagePolicy",
"allOf": [
{
"type": "object",
"properties": {
"version": {
"type": "string"
}
}
},
{
"$ref": "#/components/schemas/new_package_policy"
}
]
}
}
},

View file

@ -789,6 +789,11 @@ paths:
put:
summary: PackagePolicies - Update
operationId: put-packagePolicies-packagePolicyId
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/update_package_policy'
responses:
'200':
description: OK
@ -1323,5 +1328,13 @@ components:
- format_version
- download
- path
update_package_policy:
title: UpdatePackagePolicy
allOf:
- type: object
properties:
version:
type: string
- $ref: '#/components/schemas/new_package_policy'
security:
- basicAuth: []

View file

@ -0,0 +1,7 @@
title: UpdatePackagePolicy
allOf:
- type: object
properties:
version:
type: string
- $ref: ./new_package_policy.yaml

View file

@ -23,6 +23,11 @@ parameters:
put:
summary: PackagePolicies - Update
operationId: put-packagePolicies-packagePolicyId
requestBody:
content:
application/json:
schema:
$ref: ../components/schemas/update_package_policy.yaml
responses:
'200':
description: OK