Skip to content

Commit 5fc5079

Browse files
committed
fix: revert backgroundImage schema
1 parent 1cff89c commit 5fc5079

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

schemas/common.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -768,8 +768,16 @@
768768
"$ref": "common#/definitions/fitToSquare"
769769
},
770770
"backgroundImage": {
771-
"type": "string",
772-
"format": "uri"
771+
"oneOf": [
772+
{
773+
"type": "string",
774+
"format": "uri"
775+
},
776+
{
777+
"type": "string",
778+
"const": ""
779+
}
780+
]
773781
},
774782
"type": {
775783
"type": "string",

test/suites/update.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,6 @@ describe('update suite', function suite() {
597597
});
598598
});
599599

600-
it('failed to unset backgroundImage passing an empty string', async function test() {
601-
meta.backgroundImage = '';
602-
603-
await assert.rejects(this.send({ uploadId: this.response.uploadId, username, meta }, 45000), {
604-
statusCode: 400,
605-
});
606-
});
607-
608600
it('remove backgroundImage', async function test() {
609601
await this
610602
.send({

0 commit comments

Comments
 (0)