no longer split schema in request/response

This commit is contained in:
vabene1111
2024-04-27 10:40:09 +02:00
parent 846c3e36cc
commit e405aab310
104 changed files with 3057 additions and 1125 deletions

View File

@@ -65,7 +65,7 @@ export interface OpenDataProperty {
* @type {number}
* @memberof OpenDataProperty
*/
readonly id: number;
id?: number;
/**
*
* @type {OpenDataVersion}
@@ -114,7 +114,6 @@ export interface OpenDataProperty {
* Check if a given object implements the OpenDataProperty interface.
*/
export function instanceOfOpenDataProperty(value: object): boolean {
if (!('id' in value)) return false;
if (!('version' in value)) return false;
if (!('slug' in value)) return false;
if (!('name' in value)) return false;
@@ -132,7 +131,7 @@ export function OpenDataPropertyFromJSONTyped(json: any, ignoreDiscriminator: bo
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'version': OpenDataVersionFromJSON(json['version']),
'slug': json['slug'],
'name': json['name'],
@@ -149,6 +148,7 @@ export function OpenDataPropertyToJSON(value?: OpenDataProperty | null): any {
}
return {
'id': value['id'],
'version': OpenDataVersionToJSON(value['version']),
'slug': value['slug'],
'name': value['name'],