Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
ember-validators-octane
Advanced tools
A collection of EmberJS validators to support Octane edition. Forked from https://github.com/offirgolan/ember-validators
ember install ember-validators-octane
If it is a bug please open an issue on GitHub.
Validators can be individually imported and used as such
import validatePresence from 'ember-validators-octane/presence';
import validateLength from 'ember-validators-octane/length';
validatePresence('foo', { presence: true });
validateLength('foo', { min: 1 });
or via the validate method provided
import { validate } from 'ember-validators-octane';
validate('presence', 'foo', { presence: true });
validate('length', 'foo', { min: 1 });
Each validator has the following signature:
function (value, options, model, attribute) {}
value (Mixed):
The value to validate
options (Object):
A mutable object that holds validation specific options
model (Object):
The model that is being validated
attribute (String):
The attribute that is being validated
Boolean
true
will be returned if the validation passed
Object
Validation failed and a message should be built with the given attributes
type (String):
The message type
value (Mixed):
The value that was validated
context (Object):
The error message context
message (String):
The error message. If this is specified, use this string as the error message instead of building one.
FAQs
A collection of EmberJS validators
The npm package ember-validators-octane receives a total of 2 weekly downloads. As such, ember-validators-octane popularity was classified as not popular.
We found that ember-validators-octane demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.