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

Error setting a variable to an enum attribute #995

Open
1 of 4 tasks
hallelk opened this issue Nov 4, 2024 · 0 comments
Open
1 of 4 tasks

Error setting a variable to an enum attribute #995

hallelk opened this issue Nov 4, 2024 · 0 comments

Comments

@hallelk
Copy link

hallelk commented Nov 4, 2024

Describe the bug

Working on a serverless project in vscode, I came across this problem -
Trying to set a variable to an attribute defined as an enum - i get "value is not accepted. valid values: ...".

See this simplified version:

service: test-service

provider:
  name: aws
  region: ${env:AWS_REGION} # this value gets an error

Expected Behavior

I'd expect it to be a warning or less.

Current Behavior

I get an error reported.

Steps to Reproduce

Just put this example in a file called serverless.yml and open with vscode, then wait a bit for the linting to happen.
Adding useDotenv: true or using the serverless-dotenv-plugin doesn't change this.

Environment

  • Windows
  • Mac
  • Linux
  • other (please specify)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant