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

@@ -95,7 +95,7 @@ export interface Food {
* @type {number}
* @memberof Food
*/
readonly id: number;
id?: number;
/**
*
* @type {string}
@@ -241,7 +241,6 @@ export interface Food {
* Check if a given object implements the Food interface.
*/
export function instanceOfFood(value: object): boolean {
if (!('id' in value)) return false;
if (!('name' in value)) return false;
if (!('shopping' in value)) return false;
if (!('parent' in value)) return false;
@@ -261,7 +260,7 @@ export function FoodFromJSONTyped(json: any, ignoreDiscriminator: boolean): Food
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'name': json['name'],
'pluralName': json['plural_name'] == null ? undefined : json['plural_name'],
'description': json['description'] == null ? undefined : json['description'],
@@ -294,6 +293,7 @@ export function FoodToJSON(value?: Food | null): any {
}
return {
'id': value['id'],
'name': value['name'],
'plural_name': value['pluralName'],
'description': value['description'],