From 54386f0c8f61796ff64f09b0e45b43c0a367c142 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 5 Mar 2022 17:34:26 +0100 Subject: [PATCH] api: docs: move VolumeListResponse to definitions (v1.39-v1.41) Signed-off-by: Sebastiaan van Stijn --- docs/api/v1.39.yaml | 38 ++++++++++++++++++++------------------ docs/api/v1.40.yaml | 38 ++++++++++++++++++++------------------ docs/api/v1.41.yaml | 38 ++++++++++++++++++++------------------ 3 files changed, 60 insertions(+), 54 deletions(-) diff --git a/docs/api/v1.39.yaml b/docs/api/v1.39.yaml index ef1066edb7..7d95f59b1f 100644 --- a/docs/api/v1.39.yaml +++ b/docs/api/v1.39.yaml @@ -1982,6 +1982,25 @@ definitions: com.example.some-label: "some-value" com.example.some-other-label: "some-other-value" + VolumeListResponse: + type: "object" + title: "VolumeListResponse" + x-go-name: "VolumeListOKBody" + description: "Volume list response" + properties: + Volumes: + type: "array" + description: "List of volumes" + items: + $ref: "#/definitions/Volume" + Warnings: + type: "array" + description: | + Warnings that occurred when fetching the list of volumes. + items: + type: "string" + example: [] + Network: type: "object" properties: @@ -8570,24 +8589,7 @@ paths: 200: description: "Summary volume data that matches the query" schema: - type: "object" - title: "VolumeListResponse" - description: "Volume list response" - required: [Volumes, Warnings] - properties: - Volumes: - type: "array" - x-nullable: false - description: "List of volumes" - items: - $ref: "#/definitions/Volume" - Warnings: - type: "array" - x-nullable: false - description: | - Warnings that occurred when fetching the list of volumes. - items: - type: "string" + $ref: "#/definitions/VolumeListResponse" 500: description: "Server error" schema: diff --git a/docs/api/v1.40.yaml b/docs/api/v1.40.yaml index e78552d540..4ea71a3dc3 100644 --- a/docs/api/v1.40.yaml +++ b/docs/api/v1.40.yaml @@ -2043,6 +2043,25 @@ definitions: com.example.some-label: "some-value" com.example.some-other-label: "some-other-value" + VolumeListResponse: + type: "object" + title: "VolumeListResponse" + x-go-name: "VolumeListOKBody" + description: "Volume list response" + properties: + Volumes: + type: "array" + description: "List of volumes" + items: + $ref: "#/definitions/Volume" + Warnings: + type: "array" + description: | + Warnings that occurred when fetching the list of volumes. + items: + type: "string" + example: [] + Network: type: "object" properties: @@ -8903,24 +8922,7 @@ paths: 200: description: "Summary volume data that matches the query" schema: - type: "object" - title: "VolumeListResponse" - description: "Volume list response" - required: [Volumes, Warnings] - properties: - Volumes: - type: "array" - x-nullable: false - description: "List of volumes" - items: - $ref: "#/definitions/Volume" - Warnings: - type: "array" - x-nullable: false - description: | - Warnings that occurred when fetching the list of volumes. - items: - type: "string" + $ref: "#/definitions/VolumeListResponse" 500: description: "Server error" schema: diff --git a/docs/api/v1.41.yaml b/docs/api/v1.41.yaml index c37be855d3..ed09456ffe 100644 --- a/docs/api/v1.41.yaml +++ b/docs/api/v1.41.yaml @@ -2075,6 +2075,25 @@ definitions: com.example.some-label: "some-value" com.example.some-other-label: "some-other-value" + VolumeListResponse: + type: "object" + title: "VolumeListResponse" + x-go-name: "VolumeListOKBody" + description: "Volume list response" + properties: + Volumes: + type: "array" + description: "List of volumes" + items: + $ref: "#/definitions/Volume" + Warnings: + type: "array" + description: | + Warnings that occurred when fetching the list of volumes. + items: + type: "string" + example: [] + Network: type: "object" properties: @@ -9086,24 +9105,7 @@ paths: 200: description: "Summary volume data that matches the query" schema: - type: "object" - title: "VolumeListResponse" - description: "Volume list response" - required: [Volumes, Warnings] - properties: - Volumes: - type: "array" - x-nullable: false - description: "List of volumes" - items: - $ref: "#/definitions/Volume" - Warnings: - type: "array" - x-nullable: false - description: | - Warnings that occurred when fetching the list of volumes. - items: - type: "string" + $ref: "#/definitions/VolumeListResponse" 500: description: "Server error" schema: