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

@@ -31,7 +31,7 @@ export interface CookLog {
* @type {number}
* @memberof CookLog
*/
id?: number;
readonly id: number;
/**
*
* @type {number}
@@ -80,6 +80,7 @@ export interface CookLog {
* Check if a given object implements the CookLog interface.
*/
export function instanceOfCookLog(value: object): boolean {
if (!('id' in value)) return false;
if (!('recipe' in value)) return false;
if (!('createdBy' in value)) return false;
if (!('updatedAt' in value)) return false;
@@ -96,7 +97,7 @@ export function CookLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): C
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'recipe': json['recipe'],
'servings': json['servings'] == null ? undefined : json['servings'],
'rating': json['rating'] == null ? undefined : json['rating'],
@@ -113,7 +114,6 @@ export function CookLogToJSON(value?: CookLog | null): any {
}
return {
'id': value['id'],
'recipe': value['recipe'],
'servings': value['servings'],
'rating': value['rating'],