no longer split schema in request/response

This commit is contained in:
vabene1111
2024-04-27 10:40:09 +02:00
parent 846c3e36cc
commit e405aab310
104 changed files with 3057 additions and 1125 deletions

View File

@@ -55,7 +55,7 @@ export interface Recipe {
* @type {number}
* @memberof Recipe
*/
readonly id: number;
id?: number;
/**
*
* @type {string}
@@ -200,7 +200,6 @@ export interface Recipe {
* Check if a given object implements the Recipe interface.
*/
export function instanceOfRecipe(value: object): boolean {
if (!('id' in value)) return false;
if (!('name' in value)) return false;
if (!('image' in value)) return false;
if (!('steps' in value)) return false;
@@ -223,7 +222,7 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'name': json['name'],
'description': json['description'] == null ? undefined : json['description'],
'image': json['image'],
@@ -256,6 +255,7 @@ export function RecipeToJSON(value?: Recipe | null): any {
}
return {
'id': value['id'],
'name': value['name'],
'description': value['description'],
'keywords': value['keywords'] == null ? undefined : ((value['keywords'] as Array<any>).map(KeywordToJSON)),