Skip to content

Commit c9188b3

Browse files
authored
fix(api-addresses): Main isn't required when updating an address (#695)
1 parent 3c8e2d9 commit c9188b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/addresses.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ module.exports = (db, server, userHandler, settingsHandler) => {
879879
.description(
880880
'New address if you want to rename existing address. Only affects normal addresses, special addresses that include * can not be changed'
881881
),
882-
main: booleanSchema.required().description('Indicates if this is the default address for the User'),
882+
main: booleanSchema.description('Indicates if this is the default address for the User'),
883883
tags: Joi.array().items(Joi.string().trim().max(128)).description('A list of tags associated with this address'),
884884

885885
metaData: metaDataSchema.label('metaData').description('Optional metadata, must be an object or JSON formatted string'),

0 commit comments

Comments
 (0)