Checks if `value` is a valid array-like length.
Checks if the given value is a valid array-like index.
Checks if the given value is a valid array-like length.
Test if a value is a valid array length.
check whether a value is a non-empty array
Copy a descriptor from object A to object B
Work with IANA language tags.
string-argv parses a string into an argument array to mimic process.argv. This is useful when testing Command Line Utilities that you want to pass arguments to.
Return true if a value is a valid glob pattern or patterns.
Test whether an input is a valid Array index.
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Regular expression for matching semver versions
Parses set-cookie headers into objects
A function to check whether a prop is valid for HTML and SVG elements
Check if a value is a safe integer that is not negative - a valid array-like length
A lightweight utility for checking if a value is a valid array of objects with TypeScript support
Give me a string and I'll tell you if it's a valid npm package name
Truncate a semver version: `1.2.3` → `1.2.0`
ECMAScript extensions and shims
Balena specific semver utility methods
The semantic version parser used by npm.
JSON for Humans
Detect if a string is a data URL
Array manipulation, ordering, searching, summarizing, etc.
All methods that alter the contents of an array that implements this Gem are first checked to ensure that the added items are of the types allowed. All methods behave exactly as their Array counterparts, including additional forms, block processing, etc.
The valid_array gem provides to create an Array that enforces certian properties. Each element added to the array is passed to a validator function written by you. This function can raise errors, drop items or change them. vaild_array also provides compatibility with the typed-array gem. There is both 'valid_array/typed_array' which imports to `ValidArray::TypedArray` and a fully compatible 'valid-array' which passes 'valid-array's own test suite.
Array validations for Rails (e.g. Postgres jsonb columns)
A custom validation for your Active Model that check if an array is included in another one
The hashy_validator gem provides the HashyArrayValidator, a custom Active Model validator designed to validate arrays of hashes within ActiveRecord model attributes. Utilizing the HashValidator gem, on top of hash_validator gem. The gem includes a comprehensive test suite using the minitest framework.
Schemacop validates ruby structures consisting of nested hashes and arrays against simple schema definitions.
html_attributes provide helper methods to convert arrays and hashes to valid html attributes.
Provides subset validation for serialized arrays or sets in Active Record
Provides a DSL for common validation formats like Date, Array, DateTime etc.
Simple DSL to design validation schemas for JSON document (or Hash / Array structure)
Manage text field attribute serialized as an array, hash, etc. Add per-item validation
Validate Ruby data structures against JSON Schema definitions with support for type checking, required properties, pattern matching, numeric ranges, enums, and array validation.
No description provided.
No description provided.
No description provided.
No description provided.