diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c84d61cfe..30ee61c85 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -9646,6 +9646,8 @@ components: type: object NotebookGlobalTime: description: Notebook global timeframe. + example: + live_span: 1h oneOf: - $ref: '#/components/schemas/NotebookRelativeTime' - $ref: '#/components/schemas/NotebookAbsoluteTime' @@ -14820,6 +14822,7 @@ components: SyntheticsAssertionTargetValue: description: Value used by the operator in assertions. Can be either a number or string. + example: 0.0 oneOf: - $ref: '#/components/schemas/SyntheticsAssertionTargetValueNumber' - $ref: '#/components/schemas/SyntheticsAssertionTargetValueString' diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index f35df7747..2c64bbd7a 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -2361,6 +2361,7 @@ components: - $ref: '#/components/schemas/ActionQueryMockedOutputsObject' ActionQueryMockedOutputsEnabled: description: Whether to enable the mocked outputs for testing. + example: false oneOf: - type: boolean - description: If this is a string, it must be a valid JavaScript expression @@ -2450,6 +2451,7 @@ components: type: string ActionQuerySpec: description: The definition of the action query. + example: '' oneOf: - type: string - $ref: '#/components/schemas/ActionQuerySpecObject' @@ -13516,6 +13518,7 @@ components: type: object CustomAttributeValuesUnion: description: Union of supported value for a custom attribute + example: '' oneOf: - $ref: '#/components/schemas/CustomAttributeStringValue' - $ref: '#/components/schemas/CustomAttributeMultiStringValue' @@ -33546,6 +33549,7 @@ components: ObservabilityPipelineOcsfMapperProcessorMappingMapping: description: Defines a single mapping rule for transforming logs into the OCSF schema. + example: CloudTrail Account Change oneOf: - $ref: '#/components/schemas/ObservabilityPipelineOcsfMappingLibrary' ObservabilityPipelineOcsfMapperProcessorType: diff --git a/.generator/src/generator/formatter.py b/.generator/src/generator/formatter.py index 0068c9630..1ed07bc99 100644 --- a/.generator/src/generator/formatter.py +++ b/.generator/src/generator/formatter.py @@ -70,7 +70,9 @@ def is_primitive(schema): def block_comment(comment, prefix="///", first_line=True): - comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment or "") + if not comment: + return "" + comment = re.sub(r"(\w+://[^\s\(\)]+)", r"<\1>", comment) lines = comment.split("\n") start = "" if first_line else lines[0] + "\n" return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip() diff --git a/src/datadogV2/model/model_timeseries_response_series.rs b/src/datadogV2/model/model_timeseries_response_series.rs index 1493aaaaf..d6d23c379 100644 --- a/src/datadogV2/model/model_timeseries_response_series.rs +++ b/src/datadogV2/model/model_timeseries_response_series.rs @@ -6,7 +6,6 @@ use serde::{Deserialize, Deserializer, Serialize}; use serde_with::skip_serializing_none; use std::fmt::{self, Formatter}; -/// #[non_exhaustive] #[skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize)]