digitalocean-js icon indicating copy to clipboard operation
digitalocean-js copied to clipboard

Input Validation

Open johnbwoodruff opened this issue 7 years ago • 3 comments

For methods that take input (e.g. attachVolumeToDroplet) make sure to validate that the right properties are provided, particularly the required ones.

johnbwoodruff avatar Aug 10 '17 03:08 johnbwoodruff

Did this in the Load Balancer service as a test, and liked how it worked out.

https://github.com/jbw91/digitalocean-js/blob/master/src/lib/services/load-balancer-service.ts#L398-L427

johnbwoodruff avatar Aug 28 '18 18:08 johnbwoodruff

@johnbwoodruff Just wanted to let you know how much I appreciate this lib! Very well documented, intellisense could not be any better, everything I am using is working flawlessly. By far the best DO API wrapper, thank you!

fritzfr avatar Nov 26 '19 12:11 fritzfr

@felix-voicehub super happy to hear that! Those are exactly the reasons I wanted to build this as opposed to use one of the existing ones. Thanks so much for dropping a note! Please open an issue if you find ways that it's not filling your needs or if anything isn't working as expected!

johnbwoodruff avatar Nov 26 '19 16:11 johnbwoodruff