Skip to content

Commit

Permalink
update openapi-client
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmattig committed Oct 15, 2024
1 parent dcb1abb commit 8be4817
Show file tree
Hide file tree
Showing 27 changed files with 61 additions and 59 deletions.
10 changes: 6 additions & 4 deletions .generation/input/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6894,8 +6894,8 @@
"mapping": {
"none": "#/components/schemas/OgrSourceDatasetTimeTypeNone",
"start": "#/components/schemas/OgrSourceDatasetTimeTypeStart",
"startDuration": "#/components/schemas/OgrSourceDatasetTimeTypeStartDuration",
"startEnd": "#/components/schemas/OgrSourceDatasetTimeTypeStartEnd"
"start+duration": "#/components/schemas/OgrSourceDatasetTimeTypeStartDuration",
"start+end": "#/components/schemas/OgrSourceDatasetTimeTypeStartEnd"
}
}
},
Expand Down Expand Up @@ -6941,6 +6941,7 @@
},
"OgrSourceDatasetTimeTypeStartDuration": {
"type": "object",
"title": "OgrSourceDatasetTimeTypeStartDuration",
"required": [
"startField",
"startFormat",
Expand All @@ -6960,13 +6961,14 @@
"type": {
"type": "string",
"enum": [
"startDuration"
"start+duration"
]
}
}
},
"OgrSourceDatasetTimeTypeStartEnd": {
"type": "object",
"title": "OgrSourceDatasetTimeTypeStartEnd",
"required": [
"startField",
"startFormat",
Expand All @@ -6990,7 +6992,7 @@
"type": {
"type": "string",
"enum": [
"startEnd"
"start+end"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def from_json(cls, json_str: str) -> OgrSourceDatasetTimeType:
return instance

# check if data type is `OgrSourceDatasetTimeTypeStartDuration`
if _data_type == "startDuration":
if _data_type == "start+duration":
instance.actual_instance = OgrSourceDatasetTimeTypeStartDuration.from_json(json_str)
return instance

# check if data type is `OgrSourceDatasetTimeTypeStartEnd`
if _data_type == "startEnd":
if _data_type == "start+end":
instance.actual_instance = OgrSourceDatasetTimeTypeStartEnd.from_json(json_str)
return instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class OgrSourceDatasetTimeTypeNone(BaseModel):
@validator('type')
def type_validate_enum(cls, value):
"""Validates the enum"""
if value not in ('none', 'start', 'startEnd', 'startDuration'):
raise ValueError("must be one of enum values ('none', 'start', 'startEnd', 'startDuration')")
if value not in ('none', 'start', 'start+end', 'start+duration'):
raise ValueError("must be one of enum values ('none', 'start', 'start+end', 'start+duration')")
return value

class Config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class OgrSourceDatasetTimeTypeStartDuration(BaseModel):
@validator('type')
def type_validate_enum(cls, value):
"""Validates the enum"""
if value not in ('startDuration'):
raise ValueError("must be one of enum values ('startDuration')")
if value not in ('start+duration'):
raise ValueError("must be one of enum values ('start+duration')")
return value

class Config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class OgrSourceDatasetTimeTypeStartEnd(BaseModel):
@validator('type')
def type_validate_enum(cls, value):
"""Validates the enum"""
if value not in ('startEnd'):
raise ValueError("must be one of enum values ('startEnd')")
if value not in ('start+end'):
raise ValueError("must be one of enum values ('start+end')")
return value

class Config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ def make_instance(self, include_optional) -> OgrSourceDatasetTimeTypeStartDurati
duration_field = '',
start_field = '',
start_format = None,
type = 'startDuration'
type = 'start+duration'
)
else:
return OgrSourceDatasetTimeTypeStartDuration(
duration_field = '',
start_field = '',
start_format = None,
type = 'startDuration',
type = 'start+duration',
)
"""

Expand Down
4 changes: 2 additions & 2 deletions python/test/test_ogr_source_dataset_time_type_start_end.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ def make_instance(self, include_optional) -> OgrSourceDatasetTimeTypeStartEnd:
end_format = None,
start_field = '',
start_format = None,
type = 'startEnd'
type = 'start+end'
)
else:
return OgrSourceDatasetTimeTypeStartEnd(
end_field = '',
end_format = None,
start_field = '',
start_format = None,
type = 'startEnd',
type = 'start+end',
)
"""

Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/esm/models/OgrSourceDatasetTimeType.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export type OgrSourceDatasetTimeType = {
} & OgrSourceDatasetTimeTypeNone | {
type: 'start';
} & OgrSourceDatasetTimeTypeStart | {
type: 'startDuration';
type: 'start+duration';
} & OgrSourceDatasetTimeTypeStartDuration | {
type: 'startEnd';
type: 'start+end';
} & OgrSourceDatasetTimeTypeStartEnd;
export declare function OgrSourceDatasetTimeTypeFromJSON(json: any): OgrSourceDatasetTimeType;
export declare function OgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceDatasetTimeType;
Expand Down
12 changes: 6 additions & 6 deletions typescript/dist/esm/models/OgrSourceDatasetTimeType.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export function OgrSourceDatasetTimeTypeFromJSONTyped(json, ignoreDiscriminator)
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeNoneFromJSONTyped(json, true)), { type: 'none' });
case 'start':
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeStartFromJSONTyped(json, true)), { type: 'start' });
case 'startDuration':
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeStartDurationFromJSONTyped(json, true)), { type: 'startDuration' });
case 'startEnd':
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true)), { type: 'startEnd' });
case 'start+duration':
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeStartDurationFromJSONTyped(json, true)), { type: 'start+duration' });
case 'start+end':
return Object.assign(Object.assign({}, OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true)), { type: 'start+end' });
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`);
}
Expand All @@ -47,9 +47,9 @@ export function OgrSourceDatasetTimeTypeToJSON(value) {
return OgrSourceDatasetTimeTypeNoneToJSON(value);
case 'start':
return OgrSourceDatasetTimeTypeStartToJSON(value);
case 'startDuration':
case 'start+duration':
return OgrSourceDatasetTimeTypeStartDurationToJSON(value);
case 'startEnd':
case 'start+end':
return OgrSourceDatasetTimeTypeStartEndToJSON(value);
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`);
Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/esm/models/OgrSourceDatasetTimeTypeNone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface OgrSourceDatasetTimeTypeNone {
export declare const OgrSourceDatasetTimeTypeNoneTypeEnum: {
readonly None: "none";
readonly Start: "start";
readonly StartEnd: "startEnd";
readonly StartDuration: "startDuration";
readonly Startend: "start+end";
readonly Startduration: "start+duration";
};
export type OgrSourceDatasetTimeTypeNoneTypeEnum = typeof OgrSourceDatasetTimeTypeNoneTypeEnum[keyof typeof OgrSourceDatasetTimeTypeNoneTypeEnum];
/**
Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/esm/models/OgrSourceDatasetTimeTypeNone.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
export const OgrSourceDatasetTimeTypeNoneTypeEnum = {
None: 'none',
Start: 'start',
StartEnd: 'startEnd',
StartDuration: 'startDuration'
Startend: 'start+end',
Startduration: 'start+duration'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeNone interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface OgrSourceDatasetTimeTypeStartDuration {
* @export
*/
export declare const OgrSourceDatasetTimeTypeStartDurationTypeEnum: {
readonly StartDuration: "startDuration";
readonly Startduration: "start+duration";
};
export type OgrSourceDatasetTimeTypeStartDurationTypeEnum = typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum];
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OgrSourceTimeFormatFromJSON, OgrSourceTimeFormatToJSON, } from './OgrSo
* @export
*/
export const OgrSourceDatasetTimeTypeStartDurationTypeEnum = {
StartDuration: 'startDuration'
Startduration: 'start+duration'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeStartDuration interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface OgrSourceDatasetTimeTypeStartEnd {
* @export
*/
export declare const OgrSourceDatasetTimeTypeStartEndTypeEnum: {
readonly StartEnd: "startEnd";
readonly Startend: "start+end";
};
export type OgrSourceDatasetTimeTypeStartEndTypeEnum = typeof OgrSourceDatasetTimeTypeStartEndTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartEndTypeEnum];
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { OgrSourceTimeFormatFromJSON, OgrSourceTimeFormatToJSON, } from './OgrSo
* @export
*/
export const OgrSourceDatasetTimeTypeStartEndTypeEnum = {
StartEnd: 'startEnd'
Startend: 'start+end'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeStartEnd interface.
Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/models/OgrSourceDatasetTimeType.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export type OgrSourceDatasetTimeType = {
} & OgrSourceDatasetTimeTypeNone | {
type: 'start';
} & OgrSourceDatasetTimeTypeStart | {
type: 'startDuration';
type: 'start+duration';
} & OgrSourceDatasetTimeTypeStartDuration | {
type: 'startEnd';
type: 'start+end';
} & OgrSourceDatasetTimeTypeStartEnd;
export declare function OgrSourceDatasetTimeTypeFromJSON(json: any): OgrSourceDatasetTimeType;
export declare function OgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OgrSourceDatasetTimeType;
Expand Down
12 changes: 6 additions & 6 deletions typescript/dist/models/OgrSourceDatasetTimeType.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function OgrSourceDatasetTimeTypeFromJSONTyped(json, ignoreDiscriminator) {
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeNone_1.OgrSourceDatasetTimeTypeNoneFromJSONTyped)(json, true)), { type: 'none' });
case 'start':
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeStart_1.OgrSourceDatasetTimeTypeStartFromJSONTyped)(json, true)), { type: 'start' });
case 'startDuration':
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeStartDuration_1.OgrSourceDatasetTimeTypeStartDurationFromJSONTyped)(json, true)), { type: 'startDuration' });
case 'startEnd':
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeStartEnd_1.OgrSourceDatasetTimeTypeStartEndFromJSONTyped)(json, true)), { type: 'startEnd' });
case 'start+duration':
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeStartDuration_1.OgrSourceDatasetTimeTypeStartDurationFromJSONTyped)(json, true)), { type: 'start+duration' });
case 'start+end':
return Object.assign(Object.assign({}, (0, OgrSourceDatasetTimeTypeStartEnd_1.OgrSourceDatasetTimeTypeStartEndFromJSONTyped)(json, true)), { type: 'start+end' });
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`);
}
Expand All @@ -52,9 +52,9 @@ function OgrSourceDatasetTimeTypeToJSON(value) {
return (0, OgrSourceDatasetTimeTypeNone_1.OgrSourceDatasetTimeTypeNoneToJSON)(value);
case 'start':
return (0, OgrSourceDatasetTimeTypeStart_1.OgrSourceDatasetTimeTypeStartToJSON)(value);
case 'startDuration':
case 'start+duration':
return (0, OgrSourceDatasetTimeTypeStartDuration_1.OgrSourceDatasetTimeTypeStartDurationToJSON)(value);
case 'startEnd':
case 'start+end':
return (0, OgrSourceDatasetTimeTypeStartEnd_1.OgrSourceDatasetTimeTypeStartEndToJSON)(value);
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`);
Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/models/OgrSourceDatasetTimeTypeNone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface OgrSourceDatasetTimeTypeNone {
export declare const OgrSourceDatasetTimeTypeNoneTypeEnum: {
readonly None: "none";
readonly Start: "start";
readonly StartEnd: "startEnd";
readonly StartDuration: "startDuration";
readonly Startend: "start+end";
readonly Startduration: "start+duration";
};
export type OgrSourceDatasetTimeTypeNoneTypeEnum = typeof OgrSourceDatasetTimeTypeNoneTypeEnum[keyof typeof OgrSourceDatasetTimeTypeNoneTypeEnum];
/**
Expand Down
4 changes: 2 additions & 2 deletions typescript/dist/models/OgrSourceDatasetTimeTypeNone.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ exports.OgrSourceDatasetTimeTypeNoneToJSON = exports.OgrSourceDatasetTimeTypeNon
exports.OgrSourceDatasetTimeTypeNoneTypeEnum = {
None: 'none',
Start: 'start',
StartEnd: 'startEnd',
StartDuration: 'startDuration'
Startend: 'start+end',
Startduration: 'start+duration'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeNone interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface OgrSourceDatasetTimeTypeStartDuration {
* @export
*/
export declare const OgrSourceDatasetTimeTypeStartDurationTypeEnum: {
readonly StartDuration: "startDuration";
readonly Startduration: "start+duration";
};
export type OgrSourceDatasetTimeTypeStartDurationTypeEnum = typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum];
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const OgrSourceTimeFormat_1 = require("./OgrSourceTimeFormat");
* @export
*/
exports.OgrSourceDatasetTimeTypeStartDurationTypeEnum = {
StartDuration: 'startDuration'
Startduration: 'start+duration'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeStartDuration interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface OgrSourceDatasetTimeTypeStartEnd {
* @export
*/
export declare const OgrSourceDatasetTimeTypeStartEndTypeEnum: {
readonly StartEnd: "startEnd";
readonly Startend: "start+end";
};
export type OgrSourceDatasetTimeTypeStartEndTypeEnum = typeof OgrSourceDatasetTimeTypeStartEndTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartEndTypeEnum];
/**
Expand Down
2 changes: 1 addition & 1 deletion typescript/dist/models/OgrSourceDatasetTimeTypeStartEnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const OgrSourceTimeFormat_1 = require("./OgrSourceTimeFormat");
* @export
*/
exports.OgrSourceDatasetTimeTypeStartEndTypeEnum = {
StartEnd: 'startEnd'
Startend: 'start+end'
};
/**
* Check if a given object implements the OgrSourceDatasetTimeTypeStartEnd interface.
Expand Down
14 changes: 7 additions & 7 deletions typescript/src/models/OgrSourceDatasetTimeType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
*
* @export
*/
export type OgrSourceDatasetTimeType = { type: 'none' } & OgrSourceDatasetTimeTypeNone | { type: 'start' } & OgrSourceDatasetTimeTypeStart | { type: 'startDuration' } & OgrSourceDatasetTimeTypeStartDuration | { type: 'startEnd' } & OgrSourceDatasetTimeTypeStartEnd;
export type OgrSourceDatasetTimeType = { type: 'none' } & OgrSourceDatasetTimeTypeNone | { type: 'start' } & OgrSourceDatasetTimeTypeStart | { type: 'start+duration' } & OgrSourceDatasetTimeTypeStartDuration | { type: 'start+end' } & OgrSourceDatasetTimeTypeStartEnd;

export function OgrSourceDatasetTimeTypeFromJSON(json: any): OgrSourceDatasetTimeType {
return OgrSourceDatasetTimeTypeFromJSONTyped(json, false);
Expand All @@ -61,10 +61,10 @@ export function OgrSourceDatasetTimeTypeFromJSONTyped(json: any, ignoreDiscrimin
return {...OgrSourceDatasetTimeTypeNoneFromJSONTyped(json, true), type: 'none'};
case 'start':
return {...OgrSourceDatasetTimeTypeStartFromJSONTyped(json, true), type: 'start'};
case 'startDuration':
return {...OgrSourceDatasetTimeTypeStartDurationFromJSONTyped(json, true), type: 'startDuration'};
case 'startEnd':
return {...OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true), type: 'startEnd'};
case 'start+duration':
return {...OgrSourceDatasetTimeTypeStartDurationFromJSONTyped(json, true), type: 'start+duration'};
case 'start+end':
return {...OgrSourceDatasetTimeTypeStartEndFromJSONTyped(json, true), type: 'start+end'};
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${json['type']}'`);
}
Expand All @@ -82,9 +82,9 @@ export function OgrSourceDatasetTimeTypeToJSON(value?: OgrSourceDatasetTimeType
return OgrSourceDatasetTimeTypeNoneToJSON(value);
case 'start':
return OgrSourceDatasetTimeTypeStartToJSON(value);
case 'startDuration':
case 'start+duration':
return OgrSourceDatasetTimeTypeStartDurationToJSON(value);
case 'startEnd':
case 'start+end':
return OgrSourceDatasetTimeTypeStartEndToJSON(value);
default:
throw new Error(`No variant of OgrSourceDatasetTimeType exists with 'type=${value['type']}'`);
Expand Down
4 changes: 2 additions & 2 deletions typescript/src/models/OgrSourceDatasetTimeTypeNone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export interface OgrSourceDatasetTimeTypeNone {
export const OgrSourceDatasetTimeTypeNoneTypeEnum = {
None: 'none',
Start: 'start',
StartEnd: 'startEnd',
StartDuration: 'startDuration'
Startend: 'start+end',
Startduration: 'start+duration'
} as const;
export type OgrSourceDatasetTimeTypeNoneTypeEnum = typeof OgrSourceDatasetTimeTypeNoneTypeEnum[keyof typeof OgrSourceDatasetTimeTypeNoneTypeEnum];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface OgrSourceDatasetTimeTypeStartDuration {
* @export
*/
export const OgrSourceDatasetTimeTypeStartDurationTypeEnum = {
StartDuration: 'startDuration'
Startduration: 'start+duration'
} as const;
export type OgrSourceDatasetTimeTypeStartDurationTypeEnum = typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartDurationTypeEnum];

Expand Down
2 changes: 1 addition & 1 deletion typescript/src/models/OgrSourceDatasetTimeTypeStartEnd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface OgrSourceDatasetTimeTypeStartEnd {
* @export
*/
export const OgrSourceDatasetTimeTypeStartEndTypeEnum = {
StartEnd: 'startEnd'
Startend: 'start+end'
} as const;
export type OgrSourceDatasetTimeTypeStartEndTypeEnum = typeof OgrSourceDatasetTimeTypeStartEndTypeEnum[keyof typeof OgrSourceDatasetTimeTypeStartEndTypeEnum];

Expand Down

0 comments on commit 8be4817

Please sign in to comment.