mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
no longer split schema in request/response
This commit is contained in:
@@ -58,7 +58,7 @@ export interface Keyword {
|
||||
* @type {number}
|
||||
* @memberof Keyword
|
||||
*/
|
||||
readonly id: number;
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -114,7 +114,6 @@ export interface Keyword {
|
||||
* Check if a given object implements the Keyword interface.
|
||||
*/
|
||||
export function instanceOfKeyword(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('name' in value)) return false;
|
||||
if (!('label' in value)) return false;
|
||||
if (!('parent' in value)) return false;
|
||||
@@ -135,7 +134,7 @@ export function KeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): K
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'label': json['label'],
|
||||
'description': json['description'] == null ? undefined : json['description'],
|
||||
@@ -153,6 +152,7 @@ export function KeywordToJSON(value?: Keyword | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'description': value['description'],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user