Sha256: 78f3ac25ef5b75361c801ff033a0123fb874b92a1a879b5f97f3a631ea6df934

Contents?: true

Size: 614 Bytes

Versions: 6

Compression:

Stored size: 614 Bytes

Contents

Feature: Core schema: enum
  Scenario: enum
    When the schema is:
      """
      {
          "enum": [1, "two", [[], [], []], { "four": 4 }]
      }
      """
    Then these are valid JSON:
      | 1             |
      | "two"         |
      | [[], [], []]  |
      | { "four": 4 } |
    But these are not valid JSON:
      | "one"                  |
      | 2                      |
      | [true, false]          |
      | { "name": "Mariposa" } |

  Scenario: empty enum
    When the schema is '{ "enum": [] }'
    Then these are not valid JSON:
      | ""   |
      | []   |
      | {}   |
      | null |

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jschematic-0.1.0 features/enum.feature
jschematic-0.0.9 features/enum.feature
jschematic-0.0.6 features/enum.feature
jschematic-0.0.5 features/enum.feature
jschematic-0.0.2 features/enum.feature
jschematic-0.0.1 features/enum.feature