mysociety/popit-api

View on GitHub
schemas/popolo+mysociety/other_name.json

Summary

Maintainability
Test Coverage
{
  "$schema": "http://json-schema.org/draft-03/schema#",
  "id": "http://popoloproject.com/schemas/other_name.json#",
  "title": "Other name",
  "description": "An alternate or former name",
  "type": "object",
  "properties": {
    "name": {
      "description": "An alternate or former name",
      "type": ["string", "object"],
      "required": true
    },
    "start_date": {
      "description": "The date on which the name was adopted",
      "type": ["string", "object", "null"],
      "pattern": "^[0-9]{4}(-[0-9]{2}){0,2}$"
    },
    "end_date": {
      "description": "The date on which the name was abandoned",
      "type": ["string", "object", "null"],
      "pattern": "^[0-9]{4}(-[0-9]{2}){0,2}$"
    },
    "note": {
      "description": "A note, e.g. 'Birth name'",
      "type": ["string", "object", "null"]
    }
  }
}