Sha256: 73b07c17411f32c89f66331183eb50d79464fadb7220839aa2b995210501ce22

Contents?: true

Size: 1.59 KB

Versions: 4

Compression:

Stored size: 1.59 KB

Contents

{
  "individual": {
    "belongs_to": {
      "political_party": {
        "type": "group",
        "required": true,
        "description": "Less funtime party that aligns with this individual's ideals"
      },
      "stupid_club": {
        "type": "group",
        "required": false,
        "description": "Which stupid club this individual was manipulated into joining"
      }
    },
    "belongs_to_many": {
      "parties": {
        "type": "group",
        "required": false,
        "description": "Which funtime party/parties 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

4 entries across 4 versions & 1 rubygems

Version Path
spectifly-0.0.11 spec/expectations/individual.json
spectifly-0.0.10 spec/expectations/individual.json
spectifly-0.0.9 spec/expectations/individual.json
spectifly-0.0.8 spec/expectations/individual.json