From cf4531e94d6c7c0b5f60513104156b71b6b5892d Mon Sep 17 00:00:00 2001 From: Francesca Moscatelli Date: Mon, 12 Oct 2020 14:59:54 +0200 Subject: [PATCH] Fix in PolicyManagement schemas --- .../PolicyManagement/PolicyManagement.yaml | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/SOL012/PolicyManagement/PolicyManagement.yaml b/src/SOL012/PolicyManagement/PolicyManagement.yaml index 091f373..59d442a 100644 --- a/src/SOL012/PolicyManagement/PolicyManagement.yaml +++ b/src/SOL012/PolicyManagement/PolicyManagement.yaml @@ -159,7 +159,7 @@ paths: - $ref: "../components/SOL012_params.yaml#/components/parameters/ContentType" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" requestBody: - $ref: "#/components/requestBodies/ModifyPolicyRequest" + $ref: "#/components/requestBodies/PolicyModifications" responses: "200": $ref: '#/components/responses/PolicyModifications.Patch.200' @@ -310,8 +310,6 @@ paths: - $ref: "../components/SOL012_params.yaml#/components/parameters/Accept" - $ref: "../components/SOL012_params.yaml#/components/parameters/ContentType" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" - requestBody: - $ref: '#/components/requestBodies/PolicyVersionTransferRequest' responses: "201": $ref: '#/components/responses/PolicyVersionTransfer.Put.201' @@ -390,7 +388,7 @@ paths: - $ref: "../components/SOL012_params.yaml#/components/parameters/ContentType" - $ref: "../components/SOL012_params.yaml#/components/parameters/Authorization" requestBody: - $ref: '#/components/requestBodies/PolicySubscriptionCreateRequest' + $ref: '#/components/requestBodies/PolicySubscriptionRequest' responses: "201": $ref: '#/components/responses/Subscriptions.Post.201' @@ -1375,7 +1373,7 @@ components: $ref: "#/components/schemas/CreatePolicyRequest" required: true - ModifyPolicyRequest: + PolicyModifications: description: > The parameter for the policy modifications, as defined in clause 5.6.2.4. content: @@ -1383,17 +1381,7 @@ components: schema: $ref: "../components/SOL012_schemas.yaml#/components/schemas/PolicyModifications" - PolicyVersionTransferRequest: - description: > - The payload body contains a copy of the policy content. - The "Content-Type" HTTP header shall be set according to the type of the policy content. - content: - application/*: - schema: - type: object - additionalProperties: true - - PolicySubscriptionCreateRequest: + PolicySubscriptionRequest: description: > Details of the subscription to be created. content: -- GitLab