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 23, 2024
1 parent 87f42e1 commit c8e8313
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openapi/schema/request/users_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = Joi.object( ).keys( {
description: Joi.string( ).valid( null ),
email: Joi.string( ),
icon: Joi.object( ).valid( null ),
locale: Joi.string( ),
locale: Joi.string( ).valid( null ),
login: Joi.string( ),
make_observation_licenses_same: Joi
.boolean( )
Expand Down Expand Up @@ -60,14 +60,14 @@ module.exports = Joi.object( ).keys( {
prefers_taxon_or_place_observation_email_notification: Joi.boolean( ),
prefers_user_observation_email_notification: Joi.boolean( ),
preferred_observation_fields_by: Joi.string( ),
preferred_observation_license: Joi.string( ),
preferred_photo_license: Joi.string( ),
preferred_observation_license: Joi.string( ).valid( null ),
preferred_photo_license: Joi.string( ).valid( null ),
preferred_project_addition_by: Joi.string( ),
preferred_sound_license: Joi.string( ),
preferred_sound_license: Joi.string( ).valid( null ),
search_place_id: Joi.number( ).integer( )
.description( "ID of place for default observation searches" ).valid( null ),
site_id: Joi.number( ).integer( ),
time_zone: Joi.string( ),
site_id: Joi.number( ).integer( ).valid( null ),
time_zone: Joi.string( ).valid( null ),
password: Joi.string( ),
password_confirmation: Joi.string( )
} ),
Expand Down

0 comments on commit c8e8313

Please sign in to comment.