-
Notifications
You must be signed in to change notification settings - Fork 813
SAM/CFN json schema: handle of intrinsic functions #2596
Copy link
Copy link
Open
Labels
aws-documentsAWS-specific programming languages, DSLs, filetypes, LSP, JSON schemaAWS-specific programming languages, DSLs, filetypes, LSP, JSON schemaaws-documents-sam-cfnLSP or JSON schema for CFN/SAM template yaml/json filesLSP or JSON schema for CFN/SAM template yaml/json filesfeature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.
Metadata
Metadata
Assignees
Labels
aws-documentsAWS-specific programming languages, DSLs, filetypes, LSP, JSON schemaAWS-specific programming languages, DSLs, filetypes, LSP, JSON schemaaws-documents-sam-cfnLSP or JSON schema for CFN/SAM template yaml/json filesLSP or JSON schema for CFN/SAM template yaml/json filesfeature-requestNew feature or enhancement. May require GitHub community feedback.New feature or enhancement. May require GitHub community feedback.
Is your feature request related to a problem? Please describe.
Right now when we use intrinsic functions in YAML we often get error messages such as:
Incorrect type. Expected "string".E.g.
from #1974 (comment).
This issue can also be seen a couple times in: #1978.
We should work on improving support for intrinsic functions (either in this extension or through VSCode-YAML) so that all YAML is successfully validated.
Describe the solution you'd like
There's a couple quick ideas that might help:
Describe alternatives you've considered
See if we can somehow handle intrinsic functions better through this extension
Additional context
Intrinsic function reference: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference.html