{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Chunk translations list",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "title": "Translation",
        "type": "object",
        "properties": {
          "id": {
            "type": "number"
          },
          "translator": {
            "title": "Translation author",
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "nickname": {
                "type": "string"
              },
              "avatar": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "nickname",
              "created_at",
              "updated_at"
            ]
          },
          "body": {
            "type": "string"
          },
          "rating": {
            "type": "number"
          },
          "rates": {
            "title": "List of translation rates",
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "title": "Translation rate",
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "rater": {
                      "title": "Rate author",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "number"
                        },
                        "nickname": {
                          "type": "string"
                        },
                        "avatar": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "created_at": {
                          "type": "string"
                        },
                        "updated_at": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "nickname",
                        "created_at",
                        "updated_at"
                      ]
                    },
                    "value": {
                      "type": "number"
                    },
                    "created_at": {
                      "type": "string"
                    },
                    "updated_at": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "rater",
                    "value",
                    "created_at",
                    "updated_at"
                  ]
                }
              }
            },
            "required": [
              "data"
            ]
          },
          "created_at": {
            "type": "string"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "translator",
          "body",
          "rating",
          "rates",
          "created_at",
          "updated_at"
        ]
      }
    }
  },
  "required": [
    "data"
  ]
}