mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
applied custom openapi generator fix for omit generation
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user