Sha256: a9ab9b3b84481ce1bf0108840909538022fecdba5ab25010eac21cb4ecc425b7

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

{
  "individual": {
    "belongs_to": {
      "party": {
        "type": "group",
        "required": true,
        "description": "Which funtime party this individual happy with is"
      }
    },
    "name": {
      "type": "string",
      "multiple": false,
      "required": true,
      "description": "The individual's name",
      "example": "Randy McTougherson",
      "restrictions": {
        "unique": true
      }
    },
    "age": {
      "type": "integer",
      "multiple": false,
      "required": false,
      "validations": [
        "Must be non-negative"
      ]
    },
    "happiness": {
      "type": "percent",
      "multiple": false,
      "required": false,
      "restrictions": {
        "minimum_value": 0,
        "maximum_value": 100
      }
    },
    "positions": {
      "type": "string",
      "multiple": true,
      "required": false,
      "description": "Which positions individual occupies in a group",
      "restrictions": {
        "valid_values": [
          "Lotus",
          "Pole",
          "Third"
        ]
      }
    },
    "pickled": {
      "type": "boolean",
      "multiple": false,
      "required": true,
      "description": "Whether or not this individual is pickled"
    }
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spectifly-0.0.6 spec/expectations/individual.json
spectifly-0.0.5 spec/expectations/individual.json
spectifly-0.0.4 spec/expectations/individual.json
spectifly-0.0.3 spec/expectations/individual.json
spectifly-0.0.2 spec/expectations/individual.json
spectifly-0.0.1 spec/expectations/individual.json