Registry / serialization / schemacop

schemacop

JSON →
library3.1.0rbrubygemsunverified

Validates Ruby structures consisting of nested hashes and arrays against simple schema definitions.

gem install schemacop
INSTALL
IMPORT
SIG · SCHEMACOP
S
schemacop
serializationrubyv3.1.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.

Schemacop
require 'schemacop'

Define and validate a simple hash schema.

require 'schemacop' schema = Schemacop::Schema.new do type :hash do req :name, :string opt :age, :integer end end result = schema.validate!({ name: 'Alice', age: 30 })
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
schemacop — gem install schemacop · libregistry