Sha256: 04905034091db58bb8cd76b29b1de8f98ab63ec8c4759b50c332d5299b4ca6ae
Contents?: true
Size: 1.2 KB
Versions: 9
Compression:
Stored size: 1.2 KB
Contents
Feature: Handling data types The data generated needs to have the correct properties or items, including the data type specified Scenario: Strings Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "name": { "type": "string" } } } """ When I run the JSON data generator Then the output should match the schema Scenario: Numbers Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "id": { "type": "number" } } } """ When I run the JSON data generator Then the output should match the schema Scenario: Booleans Given the following JSON schema: """json { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "admin": { "type": "boolean" } } } """ When I run the JSON data generator Then the output should match the schema
Version data entries
9 entries across 9 versions & 1 rubygems