GithubHelp home page GithubHelp logo

dyno's People

Contributors

ericmaustin avatar

Stargazers

 avatar

Watchers

 avatar

dyno's Issues

StringSliceMarshaler in encoding module results in 400 error when string slice is empty

if string slice is empty the following error is returned by the DynamoDB api when using the StringSliceMarsher:

operation error DynamoDB: PutItem, https response error StatusCode: 400, RequestID: QFEHV7VI05AS0PGUEKHHM9QQVVVV4KQNSO5AEMVJF66Q9ASUAAJG, api error ValidationException: One or more parameter values were invalid: An string set  may not be empty

Iuint32Unmarshaler should use uint32 value types but uses int32 instead

This code should all use uint32 types not int32 types

// UnmarshalUint32 unmarshals an AttributeValue into the given value
func UnmarshalUint32(av ddb.AttributeValue, v *int32) error {
	return UnmarshalUint32Ptr(av, &v)
}

// Uint32PtrUnmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint32PtrUnmarshaler(v **int32) UnmarshalerFunc {
	return func(av ddb.AttributeValue) error {
		return UnmarshalUint32Ptr(av, v)
	}
}

// Uint32Unmarshaler returns a UnmarshalerFunc func that will unmarshal an AttributeValue into the given ptr
func Uint32Unmarshaler(v *int32) UnmarshalerFunc {
	return func(av ddb.AttributeValue) error {
		return UnmarshalUint32(av, v)
	}
}

update Promise with States to allow inspecting promise state

  • promises should have a state property that is exported to allow callers to know the state of the promise, either: pending, waiting for a response, or response ready
  • promises should panic or return an error if Await is called before an operation is invoked or the promise is in pending state as this will block forever

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.