Skip to content

Commit 1a97618

Browse files
author
Drew Meyers
committed
feat: Updated openapi spec
1 parent ec098bf commit 1a97618

20 files changed

+101
-88
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ repos:
4545
- id: ruff
4646
args: [
4747
"--fix",
48-
"--unsafe-fixes"
48+
"--unsafe-fixes",
49+
"--ignore", "E402"
4950
]
5051

5152
- repo: https://github.com/PyCQA/bandit

unity_sps_ogc_processes_api_python_client/models/actual_instance.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
from pydantic import BaseModel, ValidationError, field_validator
2323
from typing_extensions import Self
2424

25-
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
26-
InputValueNoObjectWorkflows,
27-
)
2825
from unity_sps_ogc_processes_api_python_client.models.link import Link
29-
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
30-
QualifiedInputValueWorkflows,
31-
)
3226

3327
ACTUALINSTANCE_ANY_OF_SCHEMAS = [
3428
"InputValueNoObjectWorkflows",
@@ -195,5 +189,12 @@ def to_str(self) -> str:
195189
return pprint.pformat(self.model_dump())
196190

197191

192+
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
193+
InputValueNoObjectWorkflows,
194+
)
195+
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
196+
QualifiedInputValueWorkflows,
197+
)
198+
198199
# TODO: Rewrite to not use raise_errors
199200
ActualInstance.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from unity_sps_ogc_processes_api_python_client.models.input_parameterized import (
3838
InputParameterized,
3939
)
40-
from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess
4140

4241
ACTUALINSTANCE1_ANY_OF_SCHEMAS = [
4342
"Bbox1",
@@ -333,5 +332,7 @@ def to_str(self) -> str:
333332
return pprint.pformat(self.model_dump())
334333

335334

335+
from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess
336+
336337
# TODO: Rewrite to not use raise_errors
337338
ActualInstance1.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
from pydantic import BaseModel, ValidationError, field_validator
2323
from typing_extensions import Self
2424

25-
from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
26-
InlineOrRefDataWorkflows,
27-
)
28-
2925
ACTUALINSTANCE2_ANY_OF_SCHEMAS = [
3026
"InlineOrRefDataWorkflows",
3127
"List[InlineOrRefDataWorkflows]",
@@ -171,5 +167,9 @@ def to_str(self) -> str:
171167
return pprint.pformat(self.model_dump())
172168

173169

170+
from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
171+
InlineOrRefDataWorkflows,
172+
)
173+
174174
# TODO: Rewrite to not use raise_errors
175175
ActualInstance2.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
from typing_extensions import Self
2424

2525
from unity_sps_ogc_processes_api_python_client.models.reference import Reference
26-
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
27-
SchemaOneOfInput,
28-
)
2926

3027
ACTUALINSTANCE3_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfInput"]
3128

@@ -157,5 +154,9 @@ def to_str(self) -> str:
157154
return pprint.pformat(self.model_dump())
158155

159156

157+
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
158+
SchemaOneOfInput,
159+
)
160+
160161
# TODO: Rewrite to not use raise_errors
161162
ActualInstance3.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance4.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
from typing_extensions import Self
2424

2525
from unity_sps_ogc_processes_api_python_client.models.reference import Reference
26-
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
27-
SchemaOneOfOutput,
28-
)
2926

3027
ACTUALINSTANCE4_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfOutput"]
3128

@@ -157,5 +154,9 @@ def to_str(self) -> str:
157154
return pprint.pformat(self.model_dump())
158155

159156

157+
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
158+
SchemaOneOfOutput,
159+
)
160+
160161
# TODO: Rewrite to not use raise_errors
161162
ActualInstance4.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
from pydantic import BaseModel, StrictBool, ValidationError, field_validator
2323
from typing_extensions import Self
2424

25-
from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input
26-
2725
ACTUALINSTANCE5_ANY_OF_SCHEMAS = ["Schema1Input", "bool"]
2826

2927

@@ -157,5 +155,7 @@ def to_str(self) -> str:
157155
return pprint.pformat(self.model_dump())
158156

159157

158+
from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input
159+
160160
# TODO: Rewrite to not use raise_errors
161161
ActualInstance5.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/actual_instance6.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
from pydantic import BaseModel, StrictBool, ValidationError, field_validator
2323
from typing_extensions import Self
2424

25-
from unity_sps_ogc_processes_api_python_client.models.schema1_output import (
26-
Schema1Output,
27-
)
28-
2925
ACTUALINSTANCE6_ANY_OF_SCHEMAS = ["Schema1Output", "bool"]
3026

3127

@@ -159,5 +155,9 @@ def to_str(self) -> str:
159155
return pprint.pformat(self.model_dump())
160156

161157

158+
from unity_sps_ogc_processes_api_python_client.models.schema1_output import (
159+
Schema1Output,
160+
)
161+
162162
# TODO: Rewrite to not use raise_errors
163163
ActualInstance6.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/inline_or_ref_data_workflows.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@
2222
from pydantic import BaseModel, ConfigDict, StrictStr
2323
from typing_extensions import Self
2424

25-
from unity_sps_ogc_processes_api_python_client.models.actual_instance import (
26-
ActualInstance,
27-
)
28-
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
29-
InputValueNoObjectWorkflows,
30-
)
3125
from unity_sps_ogc_processes_api_python_client.models.link import Link
32-
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
33-
QualifiedInputValueWorkflows,
34-
)
3526

3627

3728
class InlineOrRefDataWorkflows(BaseModel):
@@ -173,5 +164,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
173164
return _obj
174165

175166

167+
from unity_sps_ogc_processes_api_python_client.models.actual_instance import (
168+
ActualInstance,
169+
)
170+
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
171+
InputValueNoObjectWorkflows,
172+
)
173+
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
174+
QualifiedInputValueWorkflows,
175+
)
176+
176177
# TODO: Rewrite to not use raise_errors
177178
InlineOrRefDataWorkflows.model_rebuild(raise_errors=False)

unity_sps_ogc_processes_api_python_client/models/input_process.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import (
2626
FieldsModifiersProperties,
2727
)
28-
from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import (
29-
InputWorkflows1,
30-
)
3128
from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import (
3229
OutputWorkflows1,
3330
)
@@ -192,5 +189,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
192189
return _obj
193190

194191

192+
from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import (
193+
InputWorkflows1,
194+
)
195+
195196
# TODO: Rewrite to not use raise_errors
196197
InputProcess.model_rebuild(raise_errors=False)

0 commit comments

Comments
 (0)