{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Schema for describing files within the filesystem.",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "depth": {
      "type": "integer",
      "minimum": 0
    },
    "stats": {
      "$ref": "#/definitions/stats"
    },
    "name": {
      "$ref": "#/definitions/name"
    }
  },
  "additionalProperties": false,
  "definitions": {
    "stats": {
      "size": {
        "type": "integer",
        "minimum": 0
      },
      "mode": {
        "type": "integer"
      },
      "write": {
        "type": "boolean"
      },
      "_uid": {
        "type": "integer"
      },
      "_gid": {
        "type": "integer"
      }
    },
    "name": {
      "oldname": {
        "type": "string"
      },
      "moniker": {
        "type": "string"
      }
    }
  }
}