Skip to content

Commit

Permalink
Make validation target type a union of int and float (#1843)
Browse files Browse the repository at this point in the history
* make validation target union of int and float

* update template
  • Loading branch information
nkzou committed Jan 19, 2024
1 parent cd7063a commit 19b58e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .generator/src/generator/templates/model_utils.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class OpenApiModel(object):

_nullable = False

validations: Mapping[str, Mapping[str, int]] = empty_dict
validations: Mapping[str, Mapping[str, Union[int, float]]] = empty_dict

openapi_types = empty_dict

Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class OpenApiModel(object):

_nullable = False

validations: Mapping[str, Mapping[str, int]] = empty_dict
validations: Mapping[str, Mapping[str, Union[int, float]]] = empty_dict

openapi_types = empty_dict

Expand Down

0 comments on commit 19b58e9

Please sign in to comment.