debian-forge-composer/internal/cloudapi
Ondřej Budai 00d602efc3 cloudapi: make UploadOptions anyOf
oneOf means that the body is valid against exactly ONE schema. There's an
issue with AWS EC2 upload options though: It requires region and
share_with_accounts fields. Such a request is also valid AWS S3 upload though
(this one only require region). This means that AWS EC2 upload options will be
always valid against two schemas which violates the oneOf rule.

Let's switch to anyOf and explain this in the openAPI spec.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-05-16 13:20:46 +02:00
..
v2 cloudapi: make UploadOptions anyOf 2022-05-16 13:20:46 +02:00
server.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00