Skip to content

Commit

Permalink
train lines fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Sep 16, 2024
1 parent b93b494 commit 1120c00
Show file tree
Hide file tree
Showing 37 changed files with 236 additions and 52 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.8.0-SNAPSHOT
7.9.0-SNAPSHOT
2 changes: 1 addition & 1 deletion openapi.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/models/AuthenticationError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ export function AuthenticationErrorFromJSONTyped(json: any, ignoreDiscriminator:
};
}

export function AuthenticationErrorToJSON(value?: AuthenticationError | null): any {
export function AuthenticationErrorToJSON(json: any): AuthenticationError {
return AuthenticationErrorToJSONTyped(json, false);
}

export function AuthenticationErrorToJSONTyped(value?: AuthenticationError | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'message': value['message'],
Expand Down
7 changes: 6 additions & 1 deletion src/models/AuthorizationError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ export function AuthorizationErrorFromJSONTyped(json: any, ignoreDiscriminator:
};
}

export function AuthorizationErrorToJSON(value?: AuthorizationError | null): any {
export function AuthorizationErrorToJSON(json: any): AuthorizationError {
return AuthorizationErrorToJSONTyped(json, false);
}

export function AuthorizationErrorToJSONTyped(value?: AuthorizationError | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'message': value['message'],
Expand Down
7 changes: 6 additions & 1 deletion src/models/ConflictError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ export function ConflictErrorFromJSONTyped(json: any, ignoreDiscriminator: boole
};
}

export function ConflictErrorToJSON(value?: ConflictError | null): any {
export function ConflictErrorToJSON(json: any): ConflictError {
return ConflictErrorToJSONTyped(json, false);
}

export function ConflictErrorToJSONTyped(value?: ConflictError | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'message': value['message'],
Expand Down
7 changes: 6 additions & 1 deletion src/models/ErrorTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ export function ErrorTestFromJSONTyped(json: any, ignoreDiscriminator: boolean):
};
}

export function ErrorTestToJSON(value?: ErrorTest | null): any {
export function ErrorTestToJSON(json: any): ErrorTest {
return ErrorTestToJSONTyped(json, false);
}

export function ErrorTestToJSONTyped(value?: ErrorTest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'arbitrary_string': value['arbitraryString'],
Expand Down
8 changes: 7 additions & 1 deletion src/models/Format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FormatTranslationFromJSON,
FormatTranslationFromJSONTyped,
FormatTranslationToJSON,
FormatTranslationToJSONTyped,
} from './FormatTranslation';

/**
Expand Down Expand Up @@ -80,10 +81,15 @@ export function FormatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Fo
};
}

export function FormatToJSON(value?: Format | null): any {
export function FormatToJSON(json: any): Format {
return FormatToJSONTyped(json, false);
}

export function FormatToJSONTyped(value?: Format | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'worldId': value['worldId'],
Expand Down
8 changes: 7 additions & 1 deletion src/models/FormatBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FormatTranslationFromJSON,
FormatTranslationFromJSONTyped,
FormatTranslationToJSON,
FormatTranslationToJSONTyped,
} from './FormatTranslation';

/**
Expand Down Expand Up @@ -69,10 +70,15 @@ export function FormatBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean)
};
}

export function FormatBaseToJSON(value?: FormatBase | null): any {
export function FormatBaseToJSON(json: any): FormatBase {
return FormatBaseToJSONTyped(json, false);
}

export function FormatBaseToJSONTyped(value?: FormatBase | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'worldId': value['worldId'],
Expand Down
8 changes: 7 additions & 1 deletion src/models/FormatCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FormatTranslationFromJSON,
FormatTranslationFromJSONTyped,
FormatTranslationToJSON,
FormatTranslationToJSONTyped,
} from './FormatTranslation';

/**
Expand Down Expand Up @@ -70,10 +71,15 @@ export function FormatCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
};
}

export function FormatCreateToJSON(value?: FormatCreate | null): any {
export function FormatCreateToJSON(json: any): FormatCreate {
return FormatCreateToJSONTyped(json, false);
}

export function FormatCreateToJSONTyped(value?: FormatCreate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'worldId': value['worldId'],
Expand Down
8 changes: 7 additions & 1 deletion src/models/FormatPartialUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FormatTranslationFromJSON,
FormatTranslationFromJSONTyped,
FormatTranslationToJSON,
FormatTranslationToJSONTyped,
} from './FormatTranslation';

/**
Expand Down Expand Up @@ -69,10 +70,15 @@ export function FormatPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator:
};
}

export function FormatPartialUpdateToJSON(value?: FormatPartialUpdate | null): any {
export function FormatPartialUpdateToJSON(json: any): FormatPartialUpdate {
return FormatPartialUpdateToJSONTyped(json, false);
}

export function FormatPartialUpdateToJSONTyped(value?: FormatPartialUpdate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'worldId': value['worldId'],
Expand Down
7 changes: 6 additions & 1 deletion src/models/FormatTranslation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,15 @@ export function FormatTranslationFromJSONTyped(json: any, ignoreDiscriminator: b
};
}

export function FormatTranslationToJSON(value?: FormatTranslation | null): any {
export function FormatTranslationToJSON(json: any): FormatTranslation {
return FormatTranslationToJSONTyped(json, false);
}

export function FormatTranslationToJSONTyped(value?: FormatTranslation | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'key': value['key'],
Expand Down
8 changes: 7 additions & 1 deletion src/models/FormatUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
FormatTranslationFromJSON,
FormatTranslationFromJSONTyped,
FormatTranslationToJSON,
FormatTranslationToJSONTyped,
} from './FormatTranslation';

/**
Expand Down Expand Up @@ -70,10 +71,15 @@ export function FormatUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolea
};
}

export function FormatUpdateToJSON(value?: FormatUpdate | null): any {
export function FormatUpdateToJSON(json: any): FormatUpdate {
return FormatUpdateToJSONTyped(json, false);
}

export function FormatUpdateToJSONTyped(value?: FormatUpdate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'worldId': value['worldId'],
Expand Down
13 changes: 9 additions & 4 deletions src/models/Meeting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export interface Meeting {
* @type {string}
* @memberof Meeting
*/
trainLine?: string;
trainLines?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -309,16 +309,21 @@ export function MeetingFromJSONTyped(json: any, ignoreDiscriminator: boolean): M
'contactEmail1': json['contact_email_1'] == null ? undefined : json['contact_email_1'],
'contactEmail2': json['contact_email_2'] == null ? undefined : json['contact_email_2'],
'busLines': json['bus_lines'] == null ? undefined : json['bus_lines'],
'trainLine': json['train_line'] == null ? undefined : json['train_line'],
'trainLines': json['train_lines'] == null ? undefined : json['train_lines'],
'comments': json['comments'] == null ? undefined : json['comments'],
'id': json['id'],
};
}

export function MeetingToJSON(value?: Meeting | null): any {
export function MeetingToJSON(json: any): Meeting {
return MeetingToJSONTyped(json, false);
}

export function MeetingToJSONTyped(value?: Meeting | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'serviceBodyId': value['serviceBodyId'],
Expand Down Expand Up @@ -355,7 +360,7 @@ export function MeetingToJSON(value?: Meeting | null): any {
'contact_email_1': value['contactEmail1'],
'contact_email_2': value['contactEmail2'],
'bus_lines': value['busLines'],
'train_line': value['trainLine'],
'train_lines': value['trainLines'],
'comments': value['comments'],
'id': value['id'],
};
Expand Down
13 changes: 9 additions & 4 deletions src/models/MeetingBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export interface MeetingBase {
* @type {string}
* @memberof MeetingBase
*/
trainLine?: string;
trainLines?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -288,15 +288,20 @@ export function MeetingBaseFromJSONTyped(json: any, ignoreDiscriminator: boolean
'contactEmail1': json['contact_email_1'] == null ? undefined : json['contact_email_1'],
'contactEmail2': json['contact_email_2'] == null ? undefined : json['contact_email_2'],
'busLines': json['bus_lines'] == null ? undefined : json['bus_lines'],
'trainLine': json['train_line'] == null ? undefined : json['train_line'],
'trainLines': json['train_lines'] == null ? undefined : json['train_lines'],
'comments': json['comments'] == null ? undefined : json['comments'],
};
}

export function MeetingBaseToJSON(value?: MeetingBase | null): any {
export function MeetingBaseToJSON(json: any): MeetingBase {
return MeetingBaseToJSONTyped(json, false);
}

export function MeetingBaseToJSONTyped(value?: MeetingBase | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'serviceBodyId': value['serviceBodyId'],
Expand Down Expand Up @@ -333,7 +338,7 @@ export function MeetingBaseToJSON(value?: MeetingBase | null): any {
'contact_email_1': value['contactEmail1'],
'contact_email_2': value['contactEmail2'],
'bus_lines': value['busLines'],
'train_line': value['trainLine'],
'train_lines': value['trainLines'],
'comments': value['comments'],
};
}
Expand Down
13 changes: 9 additions & 4 deletions src/models/MeetingCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export interface MeetingCreate {
* @type {string}
* @memberof MeetingCreate
*/
trainLine?: string;
trainLines?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -298,15 +298,20 @@ export function MeetingCreateFromJSONTyped(json: any, ignoreDiscriminator: boole
'contactEmail1': json['contact_email_1'] == null ? undefined : json['contact_email_1'],
'contactEmail2': json['contact_email_2'] == null ? undefined : json['contact_email_2'],
'busLines': json['bus_lines'] == null ? undefined : json['bus_lines'],
'trainLine': json['train_line'] == null ? undefined : json['train_line'],
'trainLines': json['train_lines'] == null ? undefined : json['train_lines'],
'comments': json['comments'] == null ? undefined : json['comments'],
};
}

export function MeetingCreateToJSON(value?: MeetingCreate | null): any {
export function MeetingCreateToJSON(json: any): MeetingCreate {
return MeetingCreateToJSONTyped(json, false);
}

export function MeetingCreateToJSONTyped(value?: MeetingCreate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'serviceBodyId': value['serviceBodyId'],
Expand Down Expand Up @@ -343,7 +348,7 @@ export function MeetingCreateToJSON(value?: MeetingCreate | null): any {
'contact_email_1': value['contactEmail1'],
'contact_email_2': value['contactEmail2'],
'bus_lines': value['busLines'],
'train_line': value['trainLine'],
'train_lines': value['trainLines'],
'comments': value['comments'],
};
}
Expand Down
13 changes: 9 additions & 4 deletions src/models/MeetingPartialUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export interface MeetingPartialUpdate {
* @type {string}
* @memberof MeetingPartialUpdate
*/
trainLine?: string;
trainLines?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -298,15 +298,20 @@ export function MeetingPartialUpdateFromJSONTyped(json: any, ignoreDiscriminator
'contactEmail1': json['contact_email_1'] == null ? undefined : json['contact_email_1'],
'contactEmail2': json['contact_email_2'] == null ? undefined : json['contact_email_2'],
'busLines': json['bus_lines'] == null ? undefined : json['bus_lines'],
'trainLine': json['train_line'] == null ? undefined : json['train_line'],
'trainLines': json['train_lines'] == null ? undefined : json['train_lines'],
'comments': json['comments'] == null ? undefined : json['comments'],
};
}

export function MeetingPartialUpdateToJSON(value?: MeetingPartialUpdate | null): any {
export function MeetingPartialUpdateToJSON(json: any): MeetingPartialUpdate {
return MeetingPartialUpdateToJSONTyped(json, false);
}

export function MeetingPartialUpdateToJSONTyped(value?: MeetingPartialUpdate | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}

return {

'serviceBodyId': value['serviceBodyId'],
Expand Down Expand Up @@ -343,7 +348,7 @@ export function MeetingPartialUpdateToJSON(value?: MeetingPartialUpdate | null):
'contact_email_1': value['contactEmail1'],
'contact_email_2': value['contactEmail2'],
'bus_lines': value['busLines'],
'train_line': value['trainLine'],
'train_lines': value['trainLines'],
'comments': value['comments'],
};
}
Expand Down
Loading

0 comments on commit 1120c00

Please sign in to comment.