Skip to content

Commit

Permalink
allow more v2 users update attributes to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
pleary committed Nov 22, 2024
1 parent 2756199 commit 87f42e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openapi/schema/request/users_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ module.exports = Joi.object( ).keys( {
information to the United States. The only way to revoke this consent
is to delete the account.
` ),
description: Joi.string( ),
description: Joi.string( ).valid( null ),
email: Joi.string( ),
icon: Joi.object( ).valid( null ),
locale: Joi.string( ),
login: Joi.string( ),
make_observation_licenses_same: Joi
Expand Down Expand Up @@ -38,7 +39,7 @@ module.exports = Joi.object( ).keys( {
account.
` ),
place_id: Joi.number( ).integer( )
.description( "ID of place for localizing common names" ),
.description( "ID of place for localizing common names" ).valid( null ),
prefers_automatic_taxonomic_changes: Joi.boolean( ),
prefers_comment_email_notification: Joi.boolean( ),
prefers_common_names: Joi.boolean( ),
Expand All @@ -64,7 +65,7 @@ module.exports = Joi.object( ).keys( {
preferred_project_addition_by: Joi.string( ),
preferred_sound_license: Joi.string( ),
search_place_id: Joi.number( ).integer( )
.description( "ID of place for default observation searches" ),
.description( "ID of place for default observation searches" ).valid( null ),
site_id: Joi.number( ).integer( ),
time_zone: Joi.string( ),
password: Joi.string( ),
Expand Down

0 comments on commit 87f42e1

Please sign in to comment.