mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
no longer split schema in request/response
This commit is contained in:
@@ -24,7 +24,7 @@ export interface KeywordLabel {
|
||||
* @type {number}
|
||||
* @memberof KeywordLabel
|
||||
*/
|
||||
readonly id: number;
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -37,7 +37,6 @@ export interface KeywordLabel {
|
||||
* Check if a given object implements the KeywordLabel interface.
|
||||
*/
|
||||
export function instanceOfKeywordLabel(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('label' in value)) return false;
|
||||
return true;
|
||||
}
|
||||
@@ -52,7 +51,7 @@ export function KeywordLabelFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'label': json['label'],
|
||||
};
|
||||
}
|
||||
@@ -63,6 +62,7 @@ export function KeywordLabelToJSON(value?: KeywordLabel | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user