Skip to content

Commit 4de0e14

Browse files
committed
♻️ Update client
1 parent c901a72 commit 4de0e14

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed

frontend/src/client/models.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ export type UpdatePassword = {
5454

5555
export type UserCreate = {
5656
email: string
57-
is_active?: boolean | null
57+
is_active?: boolean
5858
is_superuser?: boolean
5959
full_name?: string | null
6060
password: string
6161
}
6262

6363
export type UserPublic = {
6464
email: string
65-
is_active?: boolean | null
65+
is_active?: boolean
6666
is_superuser?: boolean
6767
full_name?: string | null
6868
id: string
@@ -76,7 +76,7 @@ export type UserRegister = {
7676

7777
export type UserUpdate = {
7878
email?: string | null
79-
is_active?: boolean | null
79+
is_active?: boolean
8080
is_superuser?: boolean
8181
full_name?: string | null
8282
password?: string | null

frontend/src/client/schemas.ts

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,8 @@ export const $UserCreate = {
225225
maxLength: 255,
226226
},
227227
is_active: {
228-
type: "any-of",
229-
contains: [
230-
{
231-
type: "boolean",
232-
},
233-
{
234-
type: "null",
235-
},
236-
],
228+
type: "boolean",
229+
default: true,
237230
},
238231
is_superuser: {
239232
type: "boolean",
@@ -269,15 +262,8 @@ export const $UserPublic = {
269262
maxLength: 255,
270263
},
271264
is_active: {
272-
type: "any-of",
273-
contains: [
274-
{
275-
type: "boolean",
276-
},
277-
{
278-
type: "null",
279-
},
280-
],
265+
type: "boolean",
266+
default: true,
281267
},
282268
is_superuser: {
283269
type: "boolean",
@@ -348,15 +334,8 @@ export const $UserUpdate = {
348334
],
349335
},
350336
is_active: {
351-
type: "any-of",
352-
contains: [
353-
{
354-
type: "boolean",
355-
},
356-
{
357-
type: "null",
358-
},
359-
],
337+
type: "boolean",
338+
default: true,
360339
},
361340
is_superuser: {
362341
type: "boolean",

0 commit comments

Comments
 (0)