Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamodb AttributeType incorrect error #141

Open
yukitaka13-1110 opened this issue Jun 16, 2021 · 4 comments
Open

Dynamodb AttributeType incorrect error #141

yukitaka13-1110 opened this issue Jun 16, 2021 · 4 comments
Assignees

Comments

@yukitaka13-1110
Copy link

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
Copy link
Author

Additional information

I use this plugin.

plugins:
  - serverless-appsync-plugin

@danieljiwonkang98
Copy link

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

@danielbogomazov
Copy link

danielbogomazov commented Feb 17, 2023

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'

@pavelvlasov
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants