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> |
||
|---|---|---|
| .. | ||
| v2 | ||
| server.go | ||