Sha256: 299d2eb2a937bc26730b46f54f13831739d9a64da80524191fed912db2d7a181

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

Feature: Core schema: disallow

  Scenario: simple type
    When the schema is:
      """
      {
          "disallow": "integer"
      }
      """
    Then these are valid JSON:
      | "oh hai" |
      | 3.14159  |
      | [1,2,3]  |
    But '42' is not valid JSON

  Scenario: complex type
    When the schema is:
      """
      {
          "disallow": [
              "string",
              { "type": "float" }
          ]
      }
      """
    Then these are valid JSON:
      | 42               |
      | [1,2,3,4]        |
      | { "foo": "bar" } |
    But these are not valid JSON:
      | "hi how are you?" |
      | 3.14159           |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jschematic-0.1.0 features/disallow.feature
jschematic-0.0.9 features/disallow.feature