vellum-ai 0.7.5__py3-none-any.whl → 0.7.6__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +68 -72
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/ml_models/client.py +0 -11
- vellum/types/__init__.py +72 -76
- vellum/types/ml_model_display_config_labelled.py +0 -1
- vellum/types/ml_model_display_config_request.py +0 -1
- vellum/types/ml_model_parameter_config.py +14 -14
- vellum/types/ml_model_parameter_config_request.py +14 -14
- vellum/types/ml_model_read.py +0 -6
- vellum/types/{array_parameter_config.py → open_api_array_property.py} +6 -6
- vellum/types/{array_parameter_config_request.py → open_api_array_property_request.py} +6 -6
- vellum/types/{boolean_parameter_config.py → open_api_boolean_property.py} +1 -1
- vellum/types/{boolean_parameter_config_request.py → open_api_boolean_property_request.py} +1 -1
- vellum/types/{const_parameter_config.py → open_api_const_property.py} +1 -1
- vellum/types/{const_parameter_config_request.py → open_api_const_property_request.py} +1 -1
- vellum/types/{integer_parameter_config.py → open_api_integer_property.py} +1 -1
- vellum/types/{integer_parameter_config_request.py → open_api_integer_property_request.py} +1 -1
- vellum/types/{number_parameter_config.py → open_api_number_property.py} +1 -1
- vellum/types/{number_parameter_config_request.py → open_api_number_property_request.py} +1 -1
- vellum/types/{object_parameter_config.py → open_api_object_property.py} +7 -7
- vellum/types/{object_parameter_config_request.py → open_api_object_property_request.py} +7 -7
- vellum/types/{one_of_parameter_config.py → open_api_one_of_property.py} +4 -4
- vellum/types/{one_of_parameter_config_request.py → open_api_one_of_property_request.py} +4 -4
- vellum/types/{parameter_config.py → open_api_property.py} +25 -25
- vellum/types/{parameter_config_request.py → open_api_property_request.py} +25 -25
- vellum/types/{string_parameter_config.py → open_api_string_property.py} +1 -1
- vellum/types/{string_parameter_config_request.py → open_api_string_property_request.py} +1 -1
- {vellum_ai-0.7.5.dist-info → vellum_ai-0.7.6.dist-info}/METADATA +1 -1
- {vellum_ai-0.7.5.dist-info → vellum_ai-0.7.6.dist-info}/RECORD +31 -33
- vellum/types/ml_model_build_config.py +0 -29
- vellum/types/ml_model_build_config_request.py +0 -29
- {vellum_ai-0.7.5.dist-info → vellum_ai-0.7.6.dist-info}/LICENSE +0 -0
- {vellum_ai-0.7.5.dist-info → vellum_ai-0.7.6.dist-info}/WHEEL +0 -0
@@ -5,23 +5,23 @@ import typing
|
|
5
5
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
|
-
from .
|
9
|
-
from .
|
10
|
-
from .
|
11
|
-
from .
|
12
|
-
from .
|
8
|
+
from .open_api_array_property_request import OpenApiArrayPropertyRequest
|
9
|
+
from .open_api_integer_property_request import OpenApiIntegerPropertyRequest
|
10
|
+
from .open_api_number_property_request import OpenApiNumberPropertyRequest
|
11
|
+
from .open_api_object_property_request import OpenApiObjectPropertyRequest
|
12
|
+
from .open_api_property_request import OpenApiPropertyRequest
|
13
13
|
|
14
14
|
|
15
15
|
class MlModelParameterConfigRequest(pydantic_v1.BaseModel):
|
16
|
-
temperature: typing.Optional[
|
17
|
-
max_tokens: typing.Optional[
|
18
|
-
stop: typing.Optional[
|
19
|
-
top_p: typing.Optional[
|
20
|
-
top_k: typing.Optional[
|
21
|
-
frequency_penalty: typing.Optional[
|
22
|
-
presence_penalty: typing.Optional[
|
23
|
-
logit_bias: typing.Optional[
|
24
|
-
custom_parameters: typing.Optional[typing.Dict[str, typing.Optional[
|
16
|
+
temperature: typing.Optional[OpenApiNumberPropertyRequest] = None
|
17
|
+
max_tokens: typing.Optional[OpenApiIntegerPropertyRequest] = None
|
18
|
+
stop: typing.Optional[OpenApiArrayPropertyRequest] = None
|
19
|
+
top_p: typing.Optional[OpenApiNumberPropertyRequest] = None
|
20
|
+
top_k: typing.Optional[OpenApiIntegerPropertyRequest] = None
|
21
|
+
frequency_penalty: typing.Optional[OpenApiNumberPropertyRequest] = None
|
22
|
+
presence_penalty: typing.Optional[OpenApiNumberPropertyRequest] = None
|
23
|
+
logit_bias: typing.Optional[OpenApiObjectPropertyRequest] = None
|
24
|
+
custom_parameters: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
|
25
25
|
|
26
26
|
def json(self, **kwargs: typing.Any) -> str:
|
27
27
|
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
|
vellum/types/ml_model_read.py
CHANGED
@@ -6,7 +6,6 @@ import typing
|
|
6
6
|
from ..core.datetime_utils import serialize_datetime
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
from .hosted_by_enum import HostedByEnum
|
9
|
-
from .ml_model_build_config import MlModelBuildConfig
|
10
9
|
from .ml_model_developer_enum_value_label import MlModelDeveloperEnumValueLabel
|
11
10
|
from .ml_model_display_config_labelled import MlModelDisplayConfigLabelled
|
12
11
|
from .ml_model_exec_config import MlModelExecConfig
|
@@ -69,11 +68,6 @@ class MlModelRead(pydantic_v1.BaseModel):
|
|
69
68
|
- `DISABLED` - Disabled
|
70
69
|
"""
|
71
70
|
|
72
|
-
build_config: MlModelBuildConfig = pydantic_v1.Field()
|
73
|
-
"""
|
74
|
-
Configuration for how the ML Model was built.
|
75
|
-
"""
|
76
|
-
|
77
71
|
exec_config: MlModelExecConfig = pydantic_v1.Field()
|
78
72
|
"""
|
79
73
|
Configuration for how to execute the ML Model.
|
@@ -9,7 +9,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiArrayProperty(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'array'
|
15
15
|
"""
|
@@ -17,9 +17,9 @@ class ArrayParameterConfig(pydantic_v1.BaseModel):
|
|
17
17
|
min_items: typing.Optional[int] = None
|
18
18
|
max_items: typing.Optional[int] = None
|
19
19
|
unique_items: typing.Optional[bool] = None
|
20
|
-
items:
|
21
|
-
prefix_items: typing.Optional[typing.List[
|
22
|
-
contains: typing.Optional[
|
20
|
+
items: OpenApiProperty
|
21
|
+
prefix_items: typing.Optional[typing.List[OpenApiProperty]] = None
|
22
|
+
contains: typing.Optional[OpenApiProperty] = None
|
23
23
|
min_contains: typing.Optional[int] = None
|
24
24
|
max_contains: typing.Optional[int] = None
|
25
25
|
default: typing.Optional[typing.List[typing.Any]] = None
|
@@ -45,6 +45,6 @@ class ArrayParameterConfig(pydantic_v1.BaseModel):
|
|
45
45
|
json_encoders = {dt.datetime: serialize_datetime}
|
46
46
|
|
47
47
|
|
48
|
-
from .
|
48
|
+
from .open_api_property import OpenApiProperty # noqa: E402
|
49
49
|
|
50
|
-
|
50
|
+
OpenApiArrayProperty.update_forward_refs()
|
@@ -9,7 +9,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiArrayPropertyRequest(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'array'
|
15
15
|
"""
|
@@ -17,9 +17,9 @@ class ArrayParameterConfigRequest(pydantic_v1.BaseModel):
|
|
17
17
|
min_items: typing.Optional[int] = None
|
18
18
|
max_items: typing.Optional[int] = None
|
19
19
|
unique_items: typing.Optional[bool] = None
|
20
|
-
items:
|
21
|
-
prefix_items: typing.Optional[typing.List[
|
22
|
-
contains: typing.Optional[
|
20
|
+
items: OpenApiPropertyRequest
|
21
|
+
prefix_items: typing.Optional[typing.List[OpenApiPropertyRequest]] = None
|
22
|
+
contains: typing.Optional[OpenApiPropertyRequest] = None
|
23
23
|
min_contains: typing.Optional[int] = None
|
24
24
|
max_contains: typing.Optional[int] = None
|
25
25
|
default: typing.Optional[typing.List[typing.Any]] = None
|
@@ -45,6 +45,6 @@ class ArrayParameterConfigRequest(pydantic_v1.BaseModel):
|
|
45
45
|
json_encoders = {dt.datetime: serialize_datetime}
|
46
46
|
|
47
47
|
|
48
|
-
from .
|
48
|
+
from .open_api_property_request import OpenApiPropertyRequest # noqa: E402
|
49
49
|
|
50
|
-
|
50
|
+
OpenApiArrayPropertyRequest.update_forward_refs()
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiBooleanProperty(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'boolean'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiBooleanPropertyRequest(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'boolean'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiConstProperty(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'const'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiConstPropertyRequest(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'const'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiIntegerProperty(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'integer'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiIntegerPropertyRequest(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'integer'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiNumberProperty(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'number'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiNumberPropertyRequest(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'number'
|
13
13
|
"""
|
@@ -9,18 +9,18 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiObjectProperty(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'object'
|
15
15
|
"""
|
16
16
|
|
17
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional[
|
17
|
+
properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiProperty]]] = None
|
18
18
|
required: typing.Optional[typing.List[str]] = None
|
19
19
|
min_properties: typing.Optional[int] = None
|
20
20
|
max_properties: typing.Optional[int] = None
|
21
|
-
property_names: typing.Optional[
|
22
|
-
additional_properties: typing.Optional[
|
23
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[
|
21
|
+
property_names: typing.Optional[OpenApiProperty] = None
|
22
|
+
additional_properties: typing.Optional[OpenApiProperty] = None
|
23
|
+
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiProperty]]] = None
|
24
24
|
default: typing.Optional[typing.Dict[str, typing.Any]] = None
|
25
25
|
title: typing.Optional[str] = None
|
26
26
|
description: typing.Optional[str] = None
|
@@ -44,6 +44,6 @@ class ObjectParameterConfig(pydantic_v1.BaseModel):
|
|
44
44
|
json_encoders = {dt.datetime: serialize_datetime}
|
45
45
|
|
46
46
|
|
47
|
-
from .
|
47
|
+
from .open_api_property import OpenApiProperty # noqa: E402
|
48
48
|
|
49
|
-
|
49
|
+
OpenApiObjectProperty.update_forward_refs()
|
@@ -9,18 +9,18 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiObjectPropertyRequest(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'object'
|
15
15
|
"""
|
16
16
|
|
17
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional[
|
17
|
+
properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
|
18
18
|
required: typing.Optional[typing.List[str]] = None
|
19
19
|
min_properties: typing.Optional[int] = None
|
20
20
|
max_properties: typing.Optional[int] = None
|
21
|
-
property_names: typing.Optional[
|
22
|
-
additional_properties: typing.Optional[
|
23
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[
|
21
|
+
property_names: typing.Optional[OpenApiPropertyRequest] = None
|
22
|
+
additional_properties: typing.Optional[OpenApiPropertyRequest] = None
|
23
|
+
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
|
24
24
|
default: typing.Optional[typing.Dict[str, typing.Any]] = None
|
25
25
|
title: typing.Optional[str] = None
|
26
26
|
description: typing.Optional[str] = None
|
@@ -44,6 +44,6 @@ class ObjectParameterConfigRequest(pydantic_v1.BaseModel):
|
|
44
44
|
json_encoders = {dt.datetime: serialize_datetime}
|
45
45
|
|
46
46
|
|
47
|
-
from .
|
47
|
+
from .open_api_property_request import OpenApiPropertyRequest # noqa: E402
|
48
48
|
|
49
|
-
|
49
|
+
OpenApiObjectPropertyRequest.update_forward_refs()
|
@@ -9,12 +9,12 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiOneOfProperty(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'oneOf'
|
15
15
|
"""
|
16
16
|
|
17
|
-
one_of: typing.List[
|
17
|
+
one_of: typing.List[OpenApiProperty] = pydantic_v1.Field(alias="oneOf")
|
18
18
|
title: typing.Optional[str] = None
|
19
19
|
description: typing.Optional[str] = None
|
20
20
|
|
@@ -39,6 +39,6 @@ class OneOfParameterConfig(pydantic_v1.BaseModel):
|
|
39
39
|
json_encoders = {dt.datetime: serialize_datetime}
|
40
40
|
|
41
41
|
|
42
|
-
from .
|
42
|
+
from .open_api_property import OpenApiProperty # noqa: E402
|
43
43
|
|
44
|
-
|
44
|
+
OpenApiOneOfProperty.update_forward_refs()
|
@@ -9,12 +9,12 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiOneOfPropertyRequest(pydantic_v1.BaseModel):
|
13
13
|
"""
|
14
14
|
An OpenAPI specification of a parameter with type 'oneOf'
|
15
15
|
"""
|
16
16
|
|
17
|
-
one_of: typing.List[
|
17
|
+
one_of: typing.List[OpenApiPropertyRequest] = pydantic_v1.Field(alias="oneOf")
|
18
18
|
title: typing.Optional[str] = None
|
19
19
|
description: typing.Optional[str] = None
|
20
20
|
|
@@ -39,6 +39,6 @@ class OneOfParameterConfigRequest(pydantic_v1.BaseModel):
|
|
39
39
|
json_encoders = {dt.datetime: serialize_datetime}
|
40
40
|
|
41
41
|
|
42
|
-
from .
|
42
|
+
from .open_api_property_request import OpenApiPropertyRequest # noqa: E402
|
43
43
|
|
44
|
-
|
44
|
+
OpenApiOneOfPropertyRequest.update_forward_refs()
|
@@ -9,13 +9,13 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiProperty_Array(pydantic_v1.BaseModel):
|
13
13
|
min_items: typing.Optional[int] = None
|
14
14
|
max_items: typing.Optional[int] = None
|
15
15
|
unique_items: typing.Optional[bool] = None
|
16
|
-
items:
|
17
|
-
prefix_items: typing.Optional[typing.List[
|
18
|
-
contains: typing.Optional[
|
16
|
+
items: OpenApiProperty
|
17
|
+
prefix_items: typing.Optional[typing.List[OpenApiProperty]] = None
|
18
|
+
contains: typing.Optional[OpenApiProperty] = None
|
19
19
|
min_contains: typing.Optional[int] = None
|
20
20
|
max_contains: typing.Optional[int] = None
|
21
21
|
default: typing.Optional[typing.List[typing.Any]] = None
|
@@ -42,14 +42,14 @@ class ParameterConfig_Array(pydantic_v1.BaseModel):
|
|
42
42
|
json_encoders = {dt.datetime: serialize_datetime}
|
43
43
|
|
44
44
|
|
45
|
-
class
|
46
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional[
|
45
|
+
class OpenApiProperty_Object(pydantic_v1.BaseModel):
|
46
|
+
properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiProperty]]] = None
|
47
47
|
required: typing.Optional[typing.List[str]] = None
|
48
48
|
min_properties: typing.Optional[int] = None
|
49
49
|
max_properties: typing.Optional[int] = None
|
50
|
-
property_names: typing.Optional[
|
51
|
-
additional_properties: typing.Optional[
|
52
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[
|
50
|
+
property_names: typing.Optional[OpenApiProperty] = None
|
51
|
+
additional_properties: typing.Optional[OpenApiProperty] = None
|
52
|
+
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiProperty]]] = None
|
53
53
|
default: typing.Optional[typing.Dict[str, typing.Any]] = None
|
54
54
|
title: typing.Optional[str] = None
|
55
55
|
description: typing.Optional[str] = None
|
@@ -74,7 +74,7 @@ class ParameterConfig_Object(pydantic_v1.BaseModel):
|
|
74
74
|
json_encoders = {dt.datetime: serialize_datetime}
|
75
75
|
|
76
76
|
|
77
|
-
class
|
77
|
+
class OpenApiProperty_Integer(pydantic_v1.BaseModel):
|
78
78
|
minimum: typing.Optional[int] = None
|
79
79
|
maximum: typing.Optional[int] = None
|
80
80
|
exclusive_minimum: typing.Optional[bool] = None
|
@@ -103,7 +103,7 @@ class ParameterConfig_Integer(pydantic_v1.BaseModel):
|
|
103
103
|
json_encoders = {dt.datetime: serialize_datetime}
|
104
104
|
|
105
105
|
|
106
|
-
class
|
106
|
+
class OpenApiProperty_Number(pydantic_v1.BaseModel):
|
107
107
|
minimum: typing.Optional[float] = None
|
108
108
|
maximum: typing.Optional[float] = None
|
109
109
|
format: typing.Optional[str] = None
|
@@ -133,7 +133,7 @@ class ParameterConfig_Number(pydantic_v1.BaseModel):
|
|
133
133
|
json_encoders = {dt.datetime: serialize_datetime}
|
134
134
|
|
135
135
|
|
136
|
-
class
|
136
|
+
class OpenApiProperty_String(pydantic_v1.BaseModel):
|
137
137
|
min_length: typing.Optional[int] = None
|
138
138
|
max_length: typing.Optional[int] = None
|
139
139
|
pattern: typing.Optional[str] = None
|
@@ -162,7 +162,7 @@ class ParameterConfig_String(pydantic_v1.BaseModel):
|
|
162
162
|
json_encoders = {dt.datetime: serialize_datetime}
|
163
163
|
|
164
164
|
|
165
|
-
class
|
165
|
+
class OpenApiProperty_Boolean(pydantic_v1.BaseModel):
|
166
166
|
default: typing.Optional[bool] = None
|
167
167
|
title: typing.Optional[str] = None
|
168
168
|
description: typing.Optional[str] = None
|
@@ -187,8 +187,8 @@ class ParameterConfig_Boolean(pydantic_v1.BaseModel):
|
|
187
187
|
json_encoders = {dt.datetime: serialize_datetime}
|
188
188
|
|
189
189
|
|
190
|
-
class
|
191
|
-
one_of: typing.List[
|
190
|
+
class OpenApiProperty_OneOf(pydantic_v1.BaseModel):
|
191
|
+
one_of: typing.List[OpenApiProperty] = pydantic_v1.Field(alias="oneOf")
|
192
192
|
title: typing.Optional[str] = None
|
193
193
|
description: typing.Optional[str] = None
|
194
194
|
type: typing.Literal["oneOf"] = "oneOf"
|
@@ -214,7 +214,7 @@ class ParameterConfig_OneOf(pydantic_v1.BaseModel):
|
|
214
214
|
json_encoders = {dt.datetime: serialize_datetime}
|
215
215
|
|
216
216
|
|
217
|
-
class
|
217
|
+
class OpenApiProperty_Const(pydantic_v1.BaseModel):
|
218
218
|
title: typing.Optional[str] = None
|
219
219
|
description: typing.Optional[str] = None
|
220
220
|
const: str
|
@@ -239,13 +239,13 @@ class ParameterConfig_Const(pydantic_v1.BaseModel):
|
|
239
239
|
json_encoders = {dt.datetime: serialize_datetime}
|
240
240
|
|
241
241
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
242
|
+
OpenApiProperty = typing.Union[
|
243
|
+
OpenApiProperty_Array,
|
244
|
+
OpenApiProperty_Object,
|
245
|
+
OpenApiProperty_Integer,
|
246
|
+
OpenApiProperty_Number,
|
247
|
+
OpenApiProperty_String,
|
248
|
+
OpenApiProperty_Boolean,
|
249
|
+
OpenApiProperty_OneOf,
|
250
|
+
OpenApiProperty_Const,
|
251
251
|
]
|
@@ -9,13 +9,13 @@ from ..core.datetime_utils import serialize_datetime
|
|
9
9
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
10
10
|
|
11
11
|
|
12
|
-
class
|
12
|
+
class OpenApiPropertyRequest_Array(pydantic_v1.BaseModel):
|
13
13
|
min_items: typing.Optional[int] = None
|
14
14
|
max_items: typing.Optional[int] = None
|
15
15
|
unique_items: typing.Optional[bool] = None
|
16
|
-
items:
|
17
|
-
prefix_items: typing.Optional[typing.List[
|
18
|
-
contains: typing.Optional[
|
16
|
+
items: OpenApiPropertyRequest
|
17
|
+
prefix_items: typing.Optional[typing.List[OpenApiPropertyRequest]] = None
|
18
|
+
contains: typing.Optional[OpenApiPropertyRequest] = None
|
19
19
|
min_contains: typing.Optional[int] = None
|
20
20
|
max_contains: typing.Optional[int] = None
|
21
21
|
default: typing.Optional[typing.List[typing.Any]] = None
|
@@ -42,14 +42,14 @@ class ParameterConfigRequest_Array(pydantic_v1.BaseModel):
|
|
42
42
|
json_encoders = {dt.datetime: serialize_datetime}
|
43
43
|
|
44
44
|
|
45
|
-
class
|
46
|
-
properties: typing.Optional[typing.Dict[str, typing.Optional[
|
45
|
+
class OpenApiPropertyRequest_Object(pydantic_v1.BaseModel):
|
46
|
+
properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
|
47
47
|
required: typing.Optional[typing.List[str]] = None
|
48
48
|
min_properties: typing.Optional[int] = None
|
49
49
|
max_properties: typing.Optional[int] = None
|
50
|
-
property_names: typing.Optional[
|
51
|
-
additional_properties: typing.Optional[
|
52
|
-
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[
|
50
|
+
property_names: typing.Optional[OpenApiPropertyRequest] = None
|
51
|
+
additional_properties: typing.Optional[OpenApiPropertyRequest] = None
|
52
|
+
pattern_properties: typing.Optional[typing.Dict[str, typing.Optional[OpenApiPropertyRequest]]] = None
|
53
53
|
default: typing.Optional[typing.Dict[str, typing.Any]] = None
|
54
54
|
title: typing.Optional[str] = None
|
55
55
|
description: typing.Optional[str] = None
|
@@ -74,7 +74,7 @@ class ParameterConfigRequest_Object(pydantic_v1.BaseModel):
|
|
74
74
|
json_encoders = {dt.datetime: serialize_datetime}
|
75
75
|
|
76
76
|
|
77
|
-
class
|
77
|
+
class OpenApiPropertyRequest_Integer(pydantic_v1.BaseModel):
|
78
78
|
minimum: typing.Optional[int] = None
|
79
79
|
maximum: typing.Optional[int] = None
|
80
80
|
exclusive_minimum: typing.Optional[bool] = None
|
@@ -103,7 +103,7 @@ class ParameterConfigRequest_Integer(pydantic_v1.BaseModel):
|
|
103
103
|
json_encoders = {dt.datetime: serialize_datetime}
|
104
104
|
|
105
105
|
|
106
|
-
class
|
106
|
+
class OpenApiPropertyRequest_Number(pydantic_v1.BaseModel):
|
107
107
|
minimum: typing.Optional[float] = None
|
108
108
|
maximum: typing.Optional[float] = None
|
109
109
|
format: typing.Optional[str] = None
|
@@ -133,7 +133,7 @@ class ParameterConfigRequest_Number(pydantic_v1.BaseModel):
|
|
133
133
|
json_encoders = {dt.datetime: serialize_datetime}
|
134
134
|
|
135
135
|
|
136
|
-
class
|
136
|
+
class OpenApiPropertyRequest_String(pydantic_v1.BaseModel):
|
137
137
|
min_length: typing.Optional[int] = None
|
138
138
|
max_length: typing.Optional[int] = None
|
139
139
|
pattern: typing.Optional[str] = None
|
@@ -162,7 +162,7 @@ class ParameterConfigRequest_String(pydantic_v1.BaseModel):
|
|
162
162
|
json_encoders = {dt.datetime: serialize_datetime}
|
163
163
|
|
164
164
|
|
165
|
-
class
|
165
|
+
class OpenApiPropertyRequest_Boolean(pydantic_v1.BaseModel):
|
166
166
|
default: typing.Optional[bool] = None
|
167
167
|
title: typing.Optional[str] = None
|
168
168
|
description: typing.Optional[str] = None
|
@@ -187,8 +187,8 @@ class ParameterConfigRequest_Boolean(pydantic_v1.BaseModel):
|
|
187
187
|
json_encoders = {dt.datetime: serialize_datetime}
|
188
188
|
|
189
189
|
|
190
|
-
class
|
191
|
-
one_of: typing.List[
|
190
|
+
class OpenApiPropertyRequest_OneOf(pydantic_v1.BaseModel):
|
191
|
+
one_of: typing.List[OpenApiPropertyRequest] = pydantic_v1.Field(alias="oneOf")
|
192
192
|
title: typing.Optional[str] = None
|
193
193
|
description: typing.Optional[str] = None
|
194
194
|
type: typing.Literal["oneOf"] = "oneOf"
|
@@ -214,7 +214,7 @@ class ParameterConfigRequest_OneOf(pydantic_v1.BaseModel):
|
|
214
214
|
json_encoders = {dt.datetime: serialize_datetime}
|
215
215
|
|
216
216
|
|
217
|
-
class
|
217
|
+
class OpenApiPropertyRequest_Const(pydantic_v1.BaseModel):
|
218
218
|
title: typing.Optional[str] = None
|
219
219
|
description: typing.Optional[str] = None
|
220
220
|
const: str
|
@@ -239,13 +239,13 @@ class ParameterConfigRequest_Const(pydantic_v1.BaseModel):
|
|
239
239
|
json_encoders = {dt.datetime: serialize_datetime}
|
240
240
|
|
241
241
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
242
|
+
OpenApiPropertyRequest = typing.Union[
|
243
|
+
OpenApiPropertyRequest_Array,
|
244
|
+
OpenApiPropertyRequest_Object,
|
245
|
+
OpenApiPropertyRequest_Integer,
|
246
|
+
OpenApiPropertyRequest_Number,
|
247
|
+
OpenApiPropertyRequest_String,
|
248
|
+
OpenApiPropertyRequest_Boolean,
|
249
|
+
OpenApiPropertyRequest_OneOf,
|
250
|
+
OpenApiPropertyRequest_Const,
|
251
251
|
]
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiStringProperty(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'string'
|
13
13
|
"""
|
@@ -7,7 +7,7 @@ from ..core.datetime_utils import serialize_datetime
|
|
7
7
|
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
|
8
8
|
|
9
9
|
|
10
|
-
class
|
10
|
+
class OpenApiStringPropertyRequest(pydantic_v1.BaseModel):
|
11
11
|
"""
|
12
12
|
An OpenAPI specification of a parameter with type 'string'
|
13
13
|
"""
|