Skip to content

Allow for any type for additionalProperties in HTTPLogItem #2216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading