Registry / other / dry-schema

dry-schema

JSON →
library1.16.0rbrubygemsunverified

dry-schema provides a DSL for defining schemas with keys and rules for value validation, coercion, and error messages.

gem install dry-schema
INSTALL
IMPORT
SIG · DRY-SCHEMA
D
dry-schema
otherrubyv1.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dry::Schema
✓ require 'dry/schema'

Define and validate a simple schema with required fields.

require 'dry/schema' schema = Dry::Schema.Params do required(:name).filled(:string) required(:age).filled(:integer, gt?: 18) end result = schema.call(name: 'John', age: 25) puts result.success?
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.16.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
dry-schema — gem install dry-schema · libregistry