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

better representation for numeric sqs-message-attributes #53

Open
sebsto opened this issue May 29, 2024 · 0 comments
Open

better representation for numeric sqs-message-attributes #53

sebsto opened this issue May 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sebsto
Copy link
Contributor

sebsto commented May 29, 2024

This issue is a carry over from the Lambda runtime project
swift-server/swift-aws-lambda-runtime#53


https://github.com/swift-server/swift-aws-lambda-runtime/pull/46/files#diff-46c15e7ad33f3c55f1eff630cb7c7d6aR30

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-message-attributes.html under "Message Attribute Data Types"

Number attributes can store positive or negative numerical values. A number can have up to 38 digits of precision, and it can be between 10^-128 and 10^+126.

right now using string as a stop gap, could use Foundation's Decimal or come up with our own BigNumber abstraction

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

No branches or pull requests

1 participant