diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index c84d61cfe74..30ee61c855d 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 f35df77478f..2c64bbd7a3f 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/templates/model.j2 b/.generator/src/generator/templates/model.j2 index 38abd9071d5..523f1aa26b8 100644 --- a/.generator/src/generator/templates/model.j2 +++ b/.generator/src/generator/templates/model.j2 @@ -6,9 +6,7 @@ require 'date' require 'time' module {{ module_name }}::{{ version|upper }} -{%- if "description" in model %} - # {{ model.description.rstrip()|replace('\n', '\n# ')|indent(2) }} -{%- endif %} + # {{ (model.description or "").rstrip()|replace('\n', '\n# ')|indent(2) }} {%- if model.deprecated %} # # @deprecated This model is deprecated. diff --git a/.generator/src/generator/templates/model_generic.j2 b/.generator/src/generator/templates/model_generic.j2 index 2e63e79c9de..61bfcab4004 100644 --- a/.generator/src/generator/templates/model_generic.j2 +++ b/.generator/src/generator/templates/model_generic.j2 @@ -16,10 +16,7 @@ or definition.enum is defined #} -{%- if "description" in definition %} -{# preserve blank line #} - {{ definition.description|block_comment|indent(4) }} -{%- endif %} + {{ (definition.description or "")|block_comment|indent(4) }} {%- if has_validation %} attr_reader :{{ attr|attribute_name }} {%- else %}