mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-10-13 12:49:33 +00:00
♻️ Refactor models to improve types (#2356)
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user