Sha256: 4cd46b4a2439317296e9d5e2ff45b4fececd3543e9b44159d8e679bef45619ad
Contents?: true
Size: 912 Bytes
Versions: 6
Compression:
Stored size: 912 Bytes
Contents
Feature: String constraints Scenario: Maximum length is short Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string", "maxLength": 2 } } } """ When I run the JSON data generator Then the "name" property of the JSON output should be a string of length 2 Scenario: Minimum length is long Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string", "minLength": 8 } } } """ When I run the JSON data generator Then the "name" property of the JSON output should be a string of length 8
Version data entries
6 entries across 6 versions & 1 rubygems