Skip to content
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

Vector YAML schema does not support environment variable defaults in URI properties #22535

Open
britton-from-notion opened this issue Feb 27, 2025 · 0 comments
Labels
type: bug A code related bug.

Comments

@britton-from-notion
Copy link
Contributor

britton-from-notion commented Feb 27, 2025

A note for the community

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Problem

The Vector YAML schema currently does not support the usage of environment variable defaults in URI properties. Which causes the schema validation in a text editor or IDE to deem the property invalid while it is perfectly valid to Vector.

Configuration

# The offending line
${MY_ENV_QUEUE_URL:-https://sqs.example.com}
# The full source configuration
sources:
  my_s3_input:
    type: aws_s3
    compression: auto
    sqs:
      queue_url: ${MY_ENV_QUEUE_URL:-https://sqs.example.com}

Version

0.45.0

Debug Output


Example Data

No response

Additional Context

image

References

No response

@britton-from-notion britton-from-notion added the type: bug A code related bug. label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A code related bug.
Projects
None yet
Development

No branches or pull requests

1 participant