loopback-sdk-builder
loopback-sdk-builder copied to clipboard
Remote method parameter defaults.
What type of pull request are you creating?
- [X] Bug Fix
- [ ] Enhancement
- [ ] Documentation
How many unit test did you write for this pull request?
0
Write a reason if none (e.g just fixed a typo): Just fixed a small default problem (numbers, strings etc defaulted to a object)
Please add a description for your pull request:
My pull requests sets defaults for parameters in remote methods which have a default defined. Right now it just generates an object for any type.
I added a commit that does not default parameters if they are not required. I don't expect empty "objects" on my back-end if I don't require the parameter.