Skip to content

Commit

Permalink
Allow for any type for additionalProperties in HTTPLogItem (#2216)
Browse files Browse the repository at this point in the history
* Regenerate client from commit 37070fd4 of spec repo

* pre-commit fixes

---------

Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 18, 2024
1 parent 0684b39 commit a474c28
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-17 14:10:51.942099",
"spec_repo_commit": "fb024a45"
"regenerated": "2024-10-18 21:00:52.065672",
"spec_repo_commit": "37070fd4"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-17 14:10:51.959206",
"spec_repo_commit": "fb024a45"
"regenerated": "2024-10-18 21:00:52.083245",
"spec_repo_commit": "37070fd4"
}
}
}
1 change: 0 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9917,7 +9917,6 @@ components:
HTTPLogItem:
additionalProperties:
description: Additional log attributes.
type: string
description: Logs that are sent over HTTP.
properties:
ddsource:
Expand Down
17 changes: 16 additions & 1 deletion src/datadog_api_client/v2/model/http_log_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,30 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
date,
datetime,
none_type,
unset,
UnsetType,
UUID,
)


class HTTPLogItem(ModelNormal):
@cached_property
def additional_properties_type(_):
return (str,)
return (
bool,
date,
datetime,
dict,
float,
int,
list,
str,
UUID,
none_type,
)

@cached_property
def openapi_types(_):
Expand Down

0 comments on commit a474c28

Please sign in to comment.