Skip to content

Commit

Permalink
feat: Updated openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Meyers committed Sep 9, 2024
1 parent ec098bf commit 1a97618
Show file tree
Hide file tree
Showing 20 changed files with 101 additions and 88 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ repos:
- id: ruff
args: [
"--fix",
"--unsafe-fixes"
"--unsafe-fixes",
"--ignore", "E402"
]

- repo: https://github.com/PyCQA/bandit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
from pydantic import BaseModel, ValidationError, field_validator
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)
from unity_sps_ogc_processes_api_python_client.models.link import Link
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
QualifiedInputValueWorkflows,
)

ACTUALINSTANCE_ANY_OF_SCHEMAS = [
"InputValueNoObjectWorkflows",
Expand Down Expand Up @@ -195,5 +189,12 @@ def to_str(self) -> str:
return pprint.pformat(self.model_dump())


from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
QualifiedInputValueWorkflows,
)

# TODO: Rewrite to not use raise_errors
ActualInstance.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
from unity_sps_ogc_processes_api_python_client.models.input_parameterized import (
InputParameterized,
)
from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess

ACTUALINSTANCE1_ANY_OF_SCHEMAS = [
"Bbox1",
Expand Down Expand Up @@ -333,5 +332,7 @@ def to_str(self) -> str:
return pprint.pformat(self.model_dump())


from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess

# TODO: Rewrite to not use raise_errors
ActualInstance1.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
from pydantic import BaseModel, ValidationError, field_validator
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
InlineOrRefDataWorkflows,
)

ACTUALINSTANCE2_ANY_OF_SCHEMAS = [
"InlineOrRefDataWorkflows",
"List[InlineOrRefDataWorkflows]",
Expand Down Expand Up @@ -171,5 +167,9 @@ def to_str(self) -> str:
return pprint.pformat(self.model_dump())


from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
InlineOrRefDataWorkflows,
)

# TODO: Rewrite to not use raise_errors
ActualInstance2.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.reference import Reference
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
SchemaOneOfInput,
)

ACTUALINSTANCE3_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfInput"]

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


from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
SchemaOneOfInput,
)

# TODO: Rewrite to not use raise_errors
ActualInstance3.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.reference import Reference
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
SchemaOneOfOutput,
)

ACTUALINSTANCE4_ANY_OF_SCHEMAS = ["Reference", "SchemaOneOfOutput"]

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


from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
SchemaOneOfOutput,
)

# TODO: Rewrite to not use raise_errors
ActualInstance4.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
from pydantic import BaseModel, StrictBool, ValidationError, field_validator
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input

ACTUALINSTANCE5_ANY_OF_SCHEMAS = ["Schema1Input", "bool"]


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


from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input

# TODO: Rewrite to not use raise_errors
ActualInstance5.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
from pydantic import BaseModel, StrictBool, ValidationError, field_validator
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.schema1_output import (
Schema1Output,
)

ACTUALINSTANCE6_ANY_OF_SCHEMAS = ["Schema1Output", "bool"]


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


from unity_sps_ogc_processes_api_python_client.models.schema1_output import (
Schema1Output,
)

# TODO: Rewrite to not use raise_errors
ActualInstance6.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance import (
ActualInstance,
)
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)
from unity_sps_ogc_processes_api_python_client.models.link import Link
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
QualifiedInputValueWorkflows,
)


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


from unity_sps_ogc_processes_api_python_client.models.actual_instance import (
ActualInstance,
)
from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)
from unity_sps_ogc_processes_api_python_client.models.qualified_input_value_workflows import (
QualifiedInputValueWorkflows,
)

# TODO: Rewrite to not use raise_errors
InlineOrRefDataWorkflows.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
from unity_sps_ogc_processes_api_python_client.models.fields_modifiers_properties import (
FieldsModifiersProperties,
)
from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import (
InputWorkflows1,
)
from unity_sps_ogc_processes_api_python_client.models.output_workflows1 import (
OutputWorkflows1,
)
Expand Down Expand Up @@ -192,5 +189,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.input_workflows1 import (
InputWorkflows1,
)

# TODO: Rewrite to not use raise_errors
InputProcess.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import (
ActualInstance1,
)
from unity_sps_ogc_processes_api_python_client.models.bbox1 import Bbox1
from unity_sps_ogc_processes_api_python_client.models.input_collection import (
InputCollection,
)
from unity_sps_ogc_processes_api_python_client.models.input_parameterized import (
InputParameterized,
)
from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess
from unity_sps_ogc_processes_api_python_client.models.oneof_schema2_validator import (
OneofSchema2Validator,
)
Expand Down Expand Up @@ -276,5 +272,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.actual_instance1 import (
ActualInstance1,
)
from unity_sps_ogc_processes_api_python_client.models.input_process import InputProcess

# TODO: Rewrite to not use raise_errors
InputValueNoObjectWorkflows.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)


class InputValueWorkflows(BaseModel):
"""
Expand Down Expand Up @@ -139,5 +135,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.input_value_no_object_workflows import (
InputValueNoObjectWorkflows,
)

# TODO: Rewrite to not use raise_errors
InputValueWorkflows.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import (
ActualInstance2,
)
from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
InlineOrRefDataWorkflows,
)


class InputWorkflows1(BaseModel):
"""
Expand Down Expand Up @@ -154,5 +147,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.actual_instance2 import (
ActualInstance2,
)
from unity_sps_ogc_processes_api_python_client.models.inline_or_ref_data_workflows import (
InlineOrRefDataWorkflows,
)

# TODO: Rewrite to not use raise_errors
InputWorkflows1.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
FieldsModifiersProperties,
)
from unity_sps_ogc_processes_api_python_client.models.format_schema import FormatSchema
from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import (
InputValueWorkflows,
)


class QualifiedInputValueWorkflows(BaseModel):
Expand Down Expand Up @@ -166,5 +163,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.input_value_workflows import (
InputValueWorkflows,
)

# TODO: Rewrite to not use raise_errors
QualifiedInputValueWorkflows.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import (
ActualInstance3,
)
from unity_sps_ogc_processes_api_python_client.models.reference import Reference
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
SchemaOneOfInput,
)


class Schema1Input(BaseModel):
Expand Down Expand Up @@ -148,5 +142,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.actual_instance3 import (
ActualInstance3,
)
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_input import (
SchemaOneOfInput,
)

# TODO: Rewrite to not use raise_errors
Schema1Input.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import (
ActualInstance4,
)
from unity_sps_ogc_processes_api_python_client.models.reference import Reference
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
SchemaOneOfOutput,
)


class Schema1Output(BaseModel):
Expand Down Expand Up @@ -148,5 +142,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.actual_instance4 import (
ActualInstance4,
)
from unity_sps_ogc_processes_api_python_client.models.schema_one_of_output import (
SchemaOneOfOutput,
)

# TODO: Rewrite to not use raise_errors
Schema1Output.model_rebuild(raise_errors=False)
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing_extensions import Self

from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import (
ActualInstance5,
)
from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input


class SchemaOneOfAdditionalPropertiesInput(BaseModel):
"""
Expand Down Expand Up @@ -138,5 +133,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return _obj


from unity_sps_ogc_processes_api_python_client.models.actual_instance5 import (
ActualInstance5,
)
from unity_sps_ogc_processes_api_python_client.models.schema1_input import Schema1Input

# TODO: Rewrite to not use raise_errors
SchemaOneOfAdditionalPropertiesInput.model_rebuild(raise_errors=False)
Loading

0 comments on commit 1a97618

Please sign in to comment.