Skip to content

Commit

Permalink
update openapi.json & openapi-ts client, run pnpm format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 15, 2024
1 parent 6963a42 commit 706473c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions frontend/src/lib/client/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,14 @@ export const ChildCreateSchema = {
birth_month: {
type: 'integer',
title: 'Birth Month'
},
has_image: {
type: 'boolean',
title: 'Has Image'
}
},
type: 'object',
required: ['birth_year', 'birth_month'],
required: ['birth_year', 'birth_month', 'has_image'],
title: 'ChildCreate'
} as const;

Expand All @@ -185,13 +189,17 @@ export const ChildPublicSchema = {
type: 'integer',
title: 'Birth Month'
},
has_image: {
type: 'boolean',
title: 'Has Image'
},
id: {
type: 'integer',
title: 'Id'
}
},
type: 'object',
required: ['birth_year', 'birth_month', 'id'],
required: ['birth_year', 'birth_month', 'has_image', 'id'],
title: 'ChildPublic'
} as const;

Expand Down
2 changes: 2 additions & 0 deletions frontend/src/lib/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ export type ChildCreate = {
name?: string;
birth_year: number;
birth_month: number;
has_image: boolean;
};

export type ChildPublic = {
name?: string;
birth_year: number;
birth_month: number;
has_image: boolean;
id: number;
};

Expand Down
Loading

0 comments on commit 706473c

Please sign in to comment.