1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

updated openapi generator

This commit is contained in:
vabene1111
2024-09-23 13:57:37 +02:00
parent 7e77e56e7f
commit 12e0c7fd7b
151 changed files with 1274 additions and 1142 deletions

View File

@@ -54,9 +54,9 @@ export interface User {
/**
* Check if a given object implements the User interface.
*/
export function instanceOfUser(value: object): boolean {
if (!('username' in value)) return false;
if (!('displayName' in value)) return false;
export function instanceOfUser(value: object): value is User {
if (!('username' in value) || value['username'] === undefined) return false;
if (!('displayName' in value) || value['displayName'] === undefined) return false;
return true;
}
@@ -78,7 +78,7 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
};
}
export function UserToJSON(value?: User | null): any {
export function UserToJSON(value?: Omit<User, 'username'|'display_name'> | null): any {
if (value == null) {
return value;
}