mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
no longer split schema in request/response
This commit is contained in:
@@ -58,7 +58,7 @@ export interface OpenDataVersion {
|
||||
* @type {number}
|
||||
* @memberof OpenDataVersion
|
||||
*/
|
||||
readonly id: number;
|
||||
id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -83,7 +83,6 @@ export interface OpenDataVersion {
|
||||
* Check if a given object implements the OpenDataVersion interface.
|
||||
*/
|
||||
export function instanceOfOpenDataVersion(value: object): boolean {
|
||||
if (!('id' in value)) return false;
|
||||
if (!('name' in value)) return false;
|
||||
if (!('code' in value)) return false;
|
||||
return true;
|
||||
@@ -99,7 +98,7 @@ export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boo
|
||||
}
|
||||
return {
|
||||
|
||||
'id': json['id'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'code': json['code'],
|
||||
'comment': json['comment'] == null ? undefined : json['comment'],
|
||||
@@ -112,6 +111,7 @@ export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'id': value['id'],
|
||||
'name': value['name'],
|
||||
'code': value['code'],
|
||||
'comment': value['comment'],
|
||||
|
||||
Reference in New Issue
Block a user