applied custom openapi generator fix for omit generation

This commit is contained in:
vabene1111
2025-03-16 15:38:37 +01:00
parent e9f87bb475
commit 8eb2ba9512
166 changed files with 1125 additions and 1519 deletions

View File

@@ -18,35 +18,30 @@ import {
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
UserToJSONTyped,
} from './User';
import type { Keyword } from './Keyword';
import {
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
KeywordToJSONTyped,
} from './Keyword';
import type { Step } from './Step';
import {
StepFromJSON,
StepFromJSONTyped,
StepToJSON,
StepToJSONTyped,
} from './Step';
import type { Property } from './Property';
import {
PropertyFromJSON,
PropertyFromJSONTyped,
PropertyToJSON,
PropertyToJSONTyped,
} from './Property';
import type { NutritionInformation } from './NutritionInformation';
import {
NutritionInformationFromJSON,
NutritionInformationFromJSONTyped,
NutritionInformationToJSON,
NutritionInformationToJSONTyped,
} from './NutritionInformation';
/**
@@ -72,7 +67,7 @@ export interface Recipe {
* @type {string}
* @memberof Recipe
*/
description?: string | null;
description?: string;
/**
*
* @type {string}
@@ -126,7 +121,7 @@ export interface Recipe {
* @type {string}
* @memberof Recipe
*/
sourceUrl?: string | null;
sourceUrl?: string;
/**
*
* @type {boolean}
@@ -144,7 +139,7 @@ export interface Recipe {
* @type {NutritionInformation}
* @memberof Recipe
*/
nutrition?: NutritionInformation | null;
nutrition?: NutritionInformation;
/**
*
* @type {Array<Property>}
@@ -254,15 +249,10 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
};
}
export function RecipeToJSON(json: any): Recipe {
return RecipeToJSONTyped(json, false);
}
export function RecipeToJSONTyped(value?: Omit<Recipe, 'image'|'created_by'|'created_at'|'updated_at'|'food_properties'|'rating'|'last_cooked'> | null, ignoreDiscriminator: boolean = false): any {
export function RecipeToJSON(value?: Omit<Recipe, 'image'|'createdBy'|'createdAt'|'updatedAt'|'foodProperties'|'rating'|'lastCooked'> | null): any {
if (value == null) {
return value;
}
return {
'id': value['id'],