Skip to content

Commit

Permalink
fix: all properties in patch body are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Dec 17, 2024
1 parent 5be29c7 commit 266f43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/doc/users/patch-req/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import UserSchema from '#types/user/schema.js'
const body = jsonSchema(UserSchema)
.removeReadonlyProperties()
.pickProperties(['firstName', 'lastName', 'birthday', 'ignorePersonalAccount', 'defaultOrg', 'defaultDep', 'plannedDeletion'])
.makeNullable(['birthday'])
.makeNullable(['firstName', 'lastName', 'birthday', 'ignorePersonalAccount', 'defaultOrg', 'defaultDep', 'plannedDeletion'])
.removeId()
.appendTitle(' patch')
.schema
Expand Down

0 comments on commit 266f43c

Please sign in to comment.