♻️ Refactor models to improve types (#2356)

This commit is contained in:
Sebastián Ramírez
2026-06-26 13:30:32 +00:00
committed by GitHub
parent a586c1c05c
commit 77be72439c
3 changed files with 28 additions and 12 deletions
+18 -6
View File
@@ -431,14 +431,26 @@ export const UserUpdateSchema = {
title: 'Email'
},
is_active: {
type: 'boolean',
title: 'Is Active',
default: true
anyOf: [
{
type: 'boolean'
},
{
type: 'null'
}
],
title: 'Is Active'
},
is_superuser: {
type: 'boolean',
title: 'Is Superuser',
default: false
anyOf: [
{
type: 'boolean'
},
{
type: 'null'
}
],
title: 'Is Superuser'
},
full_name: {
anyOf: [
+2 -2
View File
@@ -92,8 +92,8 @@ export type UsersPublic = {
export type UserUpdate = {
email?: (string | null);
is_active?: boolean;
is_superuser?: boolean;
is_active?: (boolean | null);
is_superuser?: (boolean | null);
full_name?: (string | null);
password?: (string | null);
};