mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
fixed api client generation
This commit is contained in:
@@ -31,7 +31,7 @@ export interface RecipeOverview {
|
||||
* @type {number}
|
||||
* @memberof RecipeOverview
|
||||
*/
|
||||
id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -134,6 +134,7 @@ export interface RecipeOverview {
|
||||
* Check if a given object implements the RecipeOverview interface.
|
||||
*/
|
||||
export function instanceOfRecipeOverview(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('name' in value)) return false;
|
||||
if (!('image' in value)) return false;
|
||||
if (!('keywords' in value)) return false;
|
||||
@@ -162,7 +163,7 @@ export function RecipeOverviewFromJSONTyped(json: any, ignoreDiscriminator: bool
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'name': json['name'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
'image': json['image'],
|
||||
@@ -188,7 +189,6 @@ export function RecipeOverviewToJSON(value?: RecipeOverview | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user