Skip to content

Commit 19b58e9

Browse files
authored
Make validation target type a union of int and float (#1843)
* make validation target union of int and float * update template
1 parent cd7063a commit 19b58e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.generator/src/generator/templates/model_utils.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class OpenApiModel(object):
113113

114114
_nullable = False
115115

116-
validations: Mapping[str, Mapping[str, int]] = empty_dict
116+
validations: Mapping[str, Mapping[str, Union[int, float]]] = empty_dict
117117

118118
openapi_types = empty_dict
119119

src/datadog_api_client/model_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class OpenApiModel(object):
115115

116116
_nullable = False
117117

118-
validations: Mapping[str, Mapping[str, int]] = empty_dict
118+
validations: Mapping[str, Mapping[str, Union[int, float]]] = empty_dict
119119

120120
openapi_types = empty_dict
121121

0 commit comments

Comments
 (0)