From b6d1daf7183df2e89e29d5d7d100e87dd8708526 Mon Sep 17 00:00:00 2001 From: Louis Laureys Date: Sun, 2 Jun 2024 11:03:15 +0200 Subject: [PATCH] Main isn't required when updating an address --- lib/api/addresses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/addresses.js b/lib/api/addresses.js index 6acbd7ac..7a17bf8a 100644 --- a/lib/api/addresses.js +++ b/lib/api/addresses.js @@ -879,7 +879,7 @@ module.exports = (db, server, userHandler, settingsHandler) => { .description( 'New address if you want to rename existing address. Only affects normal addresses, special addresses that include * can not be changed' ), - main: booleanSchema.required().description('Indicates if this is the default address for the User'), + main: booleanSchema.description('Indicates if this is the default address for the User'), tags: Joi.array().items(Joi.string().trim().max(128)).description('A list of tags associated with this address'), metaData: metaDataSchema.label('metaData').description('Optional metadata, must be an object or JSON formatted string'),