debian-forge-composer/internal/cloudapi/v2
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
..
errors.go cloudapi: add build job dependency checks 2022-04-13 10:31:53 +02:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
handler.go cloudapi: make Repository.rhsm optional 2022-05-11 13:46:47 +02:00
openapi.v2.gen.go cloudapi: make UploadOptions anyOf 2022-05-16 13:20:46 +02:00
openapi.v2.yml cloudapi: make UploadOptions anyOf 2022-05-16 13:20:46 +02:00
server.go Stop setting the StreamOptimized option in Weldr and Cloud APIs 2022-05-04 16:22:29 +02:00
v2_internal_test.go cloudapi: make Repository.rhsm optional 2022-05-11 13:46:47 +02:00
v2_koji_test.go cloudapi/test: add compose dependency error tests 2022-04-13 10:31:53 +02:00
v2_multi_tenancy_test.go test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
v2_test.go cloudapi/test: add compose dependency error tests 2022-04-13 10:31:53 +02:00