mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 20:36:27 +00:00
♻️ Refactor models to improve types (#2356)
This commit is contained in:
committed by
GitHub
parent
a586c1c05c
commit
77be72439c
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user