Registry / testing / json-schema-rspec

json-schema-rspec

JSON →
library0.0.4rbrubygemsunverified

Adds RSpec matchers for validating JSON schemas in tests.

gem install json-schema-rspec
INSTALL
IMPORT
SIG · JSON-SCHEMA-RSPEC
J
json-schema-rspec
testingrubyv0.0.4
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.

JSONSchemaRSpec
require 'json-schema-rspec'

Use the match_json_schema matcher in an RSpec test

require 'json-schema-rspec' RSpec.describe 'My API' do it 'returns valid JSON' do expect(response.body).to match_json_schema('my_schema') end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
json-schema-rspec — gem install json-schema-rspec · libregistry