Describe the bug
There are a number of errors shown when adding entries into a serveless.template json file. These entries are all valid according to the documentation and the template builds and deploys correctly but there are red squiggly error marks shown in the json file.
To Reproduce
There are a number of incorrect syntax errors. One such example is with the following resource:
are shown to be in error. When I hover over "ServerlessV2ScalingConfiguration" it says "ServerlessV2ScalingConfiguration key is invalid for this object"
The same goes for the reference to MySecurityGroup. Hovering over it, It says "MySecurityGroup is an invalid type for this reference". However, it is not and it works fine.
Expected behavior
I would expect the code to show correct syntax. The items should appear in the intellisence dropdowns and should resolve without a red squiggly line.
Development System (please complete the following information):
Windows Version: 11 Pro version 10.0.22631
Visual Studio Version: Professional 2022, version 17.9.5
Describe the bug There are a number of errors shown when adding entries into a serveless.template json file. These entries are all valid according to the documentation and the template builds and deploys correctly but there are red squiggly error marks shown in the json file.
To Reproduce
There are a number of incorrect syntax errors. One such example is with the following resource:
the lines
are shown to be in error. When I hover over "ServerlessV2ScalingConfiguration" it says "ServerlessV2ScalingConfiguration key is invalid for this object"
The same goes for the reference to MySecurityGroup. Hovering over it, It says "MySecurityGroup is an invalid type for this reference". However, it is not and it works fine.
Expected behavior
I would expect the code to show correct syntax. The items should appear in the intellisence dropdowns and should resolve without a red squiggly line.
Development System (please complete the following information):
Additional context
This was first submitted on AWS re:Post here: https://repost.aws/questions/QUNhx2zUN1RN2ZNjhCQ1RH7A/cloudformation-serverless-application-model-sam-serverless-template-in-visual-studio-shows-errors-but-builds-and-deploys