Sha256: 1a2192eb7c59992e9cfd7ca7558d98dcd3fb81a08da6c16869486a1391a8da4e
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 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 JSON output should be: """json {"name":"aa"} """ 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 JSON output should be: """json {"name":"aaaaaaaa"} """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json_test_data-0.1.0 | features/string_constraints.feature |