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 SyncLog {
|
||||
* @type {number}
|
||||
* @memberof SyncLog
|
||||
*/
|
||||
readonly id: number;
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -55,7 +55,6 @@ export interface SyncLog {
|
||||
* Check if a given object implements the SyncLog interface.
|
||||
*/
|
||||
export function instanceOfSyncLog(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('sync' in value)) return false;
|
||||
if (!('status' in value)) return false;
|
||||
if (!('createdAt' in value)) return false;
|
||||
@@ -72,7 +71,7 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'sync': json['sync'],
|
||||
'status': json['status'],
|
||||
'msg': json['msg'] == null ? undefined : json['msg'],
|
||||
@@ -86,6 +85,7 @@ export function SyncLogToJSON(value?: SyncLog | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'sync': value['sync'],
|
||||
'status': value['status'],
|
||||
'msg': value['msg'],
|
||||
|
||||
Reference in New Issue
Block a user