Skip to content

Configuration Errors in YAML when encountering null value #22327

@nomalord

Description

@nomalord

When configuring vector in YAML, if a null value is encountered, a non indicative error is raised.
Basic example using amqp source (generated by the generate command):

sinks:
  output:
    inputs: [test]
    connection_string: amqp://localhost:5672/%2f
    exchange: test
    routing_key: /
    type: amqp
    encoding:
      codec: json
    healthcheck:
      enabled: true
      uri: null
    buffer:
      type: memory
      max_events: 500
      when_full: block

The error returned is:

invalid type: unit value, expected any valid TOML value

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: configAnything related to configuring Vectortype: enhancementA value-adding code change that enhances its existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions