{
  "FinishesResponse": {
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "example": "Finishes retrieved successfully."
      },
      "data": {
        "type": "object",
        "additionalProperties": {
          "type": "array",
          "items": {
            "$ref": "#/FinishSchema"
          }
        }
      }
    }
  },

  "FinishSchema": {
    "type": "object",
    "properties": {
      "descr": { "type": "string" },
      "params": {
        "oneOf": [
          { "type": "null" },
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "descr": { "type": "string" },
                "id": { "type": "string" },
                "name": { "type": "string" },
                "type": { "type": "string", "enum": ["SCALAR", "RGBCOLOR"] },
                "defValueScalar": { "type": ["number", "null"] },
                "defValueColor": { "type": ["string", "null"] },
                "scalarValueRangeMin": { "type": ["number", "null"] },
                "scalarValueRangeMax": { "type": ["number", "null"] },
                "scalarValueInits": { "type": ["string", "null"] }
              }
            }
          }
        ]
      },
      "id": { "type": "string" },
      "name": { "type": "string" },
      "type": { "type": "string" }
    }
  }
}
