{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/genialis/main/json-schema/genialis-paginated-prediction-field-list-schema.json",
  "title": "PaginatedPredictionFieldList",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/genialis-prediction-field-api-openapi.yml#/components/schemas/PaginatedPredictionFieldList",
  "type": "object",
  "required": [
    "count",
    "results"
  ],
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "previous": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PredictionField"
      }
    }
  },
  "$defs": {
    "PredictionField": {
      "type": "object",
      "description": "Serializer for PredictionField objects.",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "group": {
          "$ref": "#/$defs/RelationshipDict"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "$ref": "#/$defs/PredictionFieldTypeEnum"
        },
        "version": {
          "type": "string",
          "default": "0.0.0"
        },
        "description": {
          "type": "string",
          "maxLength": 256
        },
        "inputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RelationshipDict"
          }
        },
        "label": {
          "type": "string",
          "maxLength": 128
        },
        "required": {
          "type": "boolean"
        },
        "sort_order": {
          "type": "integer",
          "maximum": 32767,
          "minimum": 0
        }
      },
      "required": [
        "description",
        "group",
        "id",
        "inputs",
        "label",
        "sort_order",
        "type"
      ]
    },
    "PredictionFieldTypeEnum": {
      "enum": [
        "SCORE",
        "CLASS"
      ],
      "type": "string",
      "description": "* `SCORE` - SCORE\n* `CLASS` - CLASS"
    },
    "RelationshipDict": {
      "type": "object",
      "description": "Serializer for the DictRelatedField relation.",
      "properties": {
        "id": {
          "type": "integer"
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}