For some reason, almost all AWS resources show an error in schema validation when defined under resources.Resources section, like so:
For some odd reason, it expects every resource I put in to be of type AWS::AmazonMQ::Broker:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar.
What is the expected behavior?
No validation errors, correct auto-completion for resources parameters
What is the motivation / use case for changing the behavior?
It confuses the user, saying there's an error when there's not, it causes static checkers and IDE to show up "red" in places that do not require attention
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
I ran into the same issue and it went away when I uninstalled the YAML extension, not sure if there's a way to get these two to work at the same time 🤔
Note: what to raise a request for unknown/new or required field or resource, then raise a PR.
68 and #62
are good examples of updating a schema definition. It should not take longer that 15 minutes.
What to prioritizer bugfix or feature? Hit that ❤️support button on the top of the screen.
And don't forget to 🌟star the repo
I'm submitting a ...
Do you want to request a feature or report a bug?
report a bug
Im using VSCode and the Serverless IDE extension, and the JSON schema "Serverless Framework Configuration"
This is the schema: https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/reference.json
For some reason, almost all AWS resources show an error in schema validation when defined under
resources.Resources
section, like so:For some odd reason, it expects every resource I put in to be of type
AWS::AmazonMQ::Broker
:If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.
What is the expected behavior?
No validation errors, correct auto-completion for resources parameters
It confuses the user, saying there's an error when there's not, it causes static checkers and IDE to show up "red" in places that do not require attention
Please tell us about your environment:
0.5.34
1.72.2
JSON schema -
https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/reference.json