Feature: Generate test data
  Scenario: Simple object
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "object",
        "properties": {
          "name": "string"
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      {"name":"string"}
      """

  Scenario: Simple array
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "array",
        "items": {
          "type": "string"
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      ["string"]
      """

Feature: Generate test data
  Scenario: Simple object
    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 JSON output should be:
      """json
      {"name":"string"}
      """

  Scenario: Simple array
    Given the following JSON schema:
      """json
      {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "type": "array",
        "items": {
          "type": "string"
        }
      }
      """
    When I run the JSON data generator
    Then the JSON output should be:
      """json
      ["string"]
      """

Fix error in JSON schema
Fix error in JSON schema
