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 Unit {
* @type {number}
* @memberof Unit
*/
id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -95,6 +95,7 @@ export interface Unit {
* Check if a given object implements the Unit interface.
*/
export function instanceOfUnit(value: object): boolean {
if (!('id' in value)) return false;
if (!('name' in value)) return false;
return true;
}
@@ -109,7 +110,7 @@ export function UnitFromJSONTyped(json: any, ignoreDiscriminator: boolean): Unit
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'pluralName': json['plural_name'] == null ? undefined : json['plural_name'],
'description': json['description'] == null ? undefined : json['description'],
@@ -124,7 +125,6 @@ export function UnitToJSON(value?: Unit | null): any {
}
return {
'id': value['id'],
'name': value['name'],
'plural_name': value['pluralName'],
'description': value['description'],