Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Definers console warning if property option not recognized #112

Open
raix opened this Issue · 2 comments

2 participants

@raix

Feature req.
console warning if a define option not found (lib/resourceful/definers.js)
eg.:
Creature.property('life', Number, { default: 10, min: 0, max: 20 });
should be:
Creature.property('life', Number, { default: 10, minimum: 0, maximum: 20 });

A warning i dev mode? could be nice saying: "'life' Number property option 'min: 0' not recognized"

@Marak

+1 This is a simple fix that would help a lot. Will add.

In the near future, we will be adding more tools and documentation to help with the creation of resource definitions.

Thanks for feedback.

@Marak

Tangentially related issue #115 , since it seems we'd need a list of defined options to check against.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.