cloudapi/v2: ensure only one image per a compose in the API spec

We've never had the ability to build multiple images per a compose, this
commit thus rips out support for this on the API level:

image_requests is now image_request and it accepts only one ImageRequest
object instead of an array of them.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
Ondřej Budai 2021-10-13 15:16:55 +02:00 committed by Sanne Raymaekers
parent b2dc90e404
commit 7760ca1c92
5 changed files with 327 additions and 337 deletions

View file

@ -474,15 +474,13 @@ components:
- type: object
required:
- distribution
- image_requests
- image_request
properties:
distribution:
type: string
example: 'rhel-8'
image_requests:
type: array
items:
$ref: '#/components/schemas/ImageRequest'
image_request:
$ref: '#/components/schemas/ImageRequest'
customizations:
$ref: '#/components/schemas/Customizations'
ImageRequest: