serverless-ide-vscode
serverless-ide-vscode copied to clipboard
Dynamodb AttributeType incorrect error
Note: what to raise a request for unknown/new or required field or resource, then raise a PR.
#68 and #62
DynamoDB AttributeType lint failed.
OK -> AttributeType: S
NG -> AttributeType: N
- Plugin version
0.5.31
- VSCode version
1.57.0
- Template type No template(DynamoDB)
Additional information
I use this plugin.
plugins:
- serverless-appsync-plugin
Should Allow Attribute Type of: S, N, B Please Update :)
This is most likely happening because of YAML itself recognizing the character N as false in an older standard.
See: https://stackoverflow.com/a/44213322
Quick fix is to wrap the character in quotes: N -> 'N'
As @danielbogomazov said, this is not an issue with the plugin. I'll keep it open for the reference.