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

fixed api client generation

This commit is contained in:
vabene1111
2024-04-22 19:33:09 +02:00
parent c47e46263c
commit 12cf9da8fc
145 changed files with 914 additions and 175 deletions

View File

@@ -58,7 +58,7 @@ export interface Group {
* @type {number}
* @memberof Group
*/
id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -71,6 +71,7 @@ export interface Group {
* Check if a given object implements the Group interface.
*/
export function instanceOfGroup(value: object): boolean {
if (!('id' in value)) return false;
if (!('name' in value)) return false;
return true;
}
@@ -85,7 +86,7 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
};
}
@@ -96,7 +97,6 @@ export function GroupToJSON(value?: Group | null): any {
}
return {
'id': value['id'],
'name': value['name'],
};
}