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

@@ -13,18 +13,18 @@
*/
import { mapValues } from '../runtime';
import type { Food } from './Food';
import {
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { Unit } from './Unit';
import {
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
import type { Food } from './Food';
import {
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
/**
* Adds nested create feature
@@ -73,19 +73,19 @@ export interface PatchedUnitConversion {
* @type {Food}
* @memberof PatchedUnitConversion
*/
food?: Food;
food?: Food | null;
/**
*
* @type {string}
* @memberof PatchedUnitConversion
*/
openDataSlug?: string;
openDataSlug?: string | null;
}
/**
* Check if a given object implements the PatchedUnitConversion interface.
*/
export function instanceOfPatchedUnitConversion(value: object): boolean {
export function instanceOfPatchedUnitConversion(value: object): value is PatchedUnitConversion {
return true;
}
@@ -110,7 +110,7 @@ export function PatchedUnitConversionFromJSONTyped(json: any, ignoreDiscriminato
};
}
export function PatchedUnitConversionToJSON(value?: PatchedUnitConversion | null): any {
export function PatchedUnitConversionToJSON(value?: Omit<PatchedUnitConversion, 'name'> | null): any {
if (value == null) {
return value;
}