serverless-ide-vscode icon indicating copy to clipboard operation
serverless-ide-vscode copied to clipboard

Dynamodb AttributeType incorrect error

Open yukitaka13-1110 opened this issue 3 years ago • 4 comments

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. スクリーンショット 2021-06-16 13 30 47

OK -> AttributeType: S NG -> AttributeType: N

  • Plugin version 0.5.31
  • VSCode version 1.57.0
  • Template type No template(DynamoDB)

yukitaka13-1110 avatar Jun 16 '21 04:06 yukitaka13-1110

Additional information

I use this plugin.

plugins:
  - serverless-appsync-plugin

yukitaka13-1110 avatar Jun 16 '21 05:06 yukitaka13-1110

Should Allow Attribute Type of: S, N, B Please Update :)

danieljiwonkang98 avatar Jul 28 '21 02:07 danieljiwonkang98

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'

danielbogomazov avatar Feb 17 '23 00:02 danielbogomazov

As @danielbogomazov said, this is not an issue with the plugin. I'll keep it open for the reference.

pavelvlasov avatar Oct 29 '23 09:10 pavelvlasov