Sha256: 863fccb5454698683a9ff387678e1c811cbae0224f53eede0d6e6af01b0dc336
Contents?: true
Size: 1.37 KB
Versions: 6
Compression:
Stored size: 1.37 KB
Contents
Feature: Core schema: dependencies Scenario: depending on a single property name When the schema is: """ { "dependencies": { "foo": "bar" } } """ Then this is valid JSON: """ { "foo": "baz", "bar": "qux" } """ But this is not valid JSON: """ { "foo": "baz", "wibble": "womble" } """ Scenario: depending on each item in list of property names When the schema is: """ { "dependencies": { "foo": ["bar", "baz"] } } """ Then this is valid JSON: """ { "foo": "qux", "bar": "quux", "baz": "wibble" } """ But this is not valid JSON: """ { "foo": "qux", "bar": "quux" } """ Scenario: depend on schema When the schema is: """ { "dependencies": { "foo": { "properties": { "favoriteNumber": { "type": "number" } } } } } """ Then this is valid JSON: """ { "foo": "bar", "favoriteNumber": 3.1415 } """ But this is not valid JSON: """ { "foo": "bar", "favoriteNumber": "eleventy million" } """
Version data entries
6 entries across 6 versions & 1 rubygems