fixed api client generation

This commit is contained in:
vabene1111
2024-04-22 19:33:09 +02:00
parent c47e46263c
commit 12cf9da8fc
145 changed files with 914 additions and 175 deletions

View File

@@ -58,7 +58,7 @@ export interface OpenDataVersion {
* @type {number}
* @memberof OpenDataVersion
*/
id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -83,6 +83,7 @@ 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;
@@ -98,7 +99,7 @@ export function OpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boo
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'code': json['code'],
'comment': json['comment'] == null ? undefined : json['comment'],
@@ -111,7 +112,6 @@ export function OpenDataVersionToJSON(value?: OpenDataVersion | null): any {
}
return {
'id': value['id'],
'name': value['name'],
'code': value['code'],
'comment': value['comment'],