{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/compteam-io/json-schema/compteam-io-evaluation-create-schema.json",
  "title": "EvaluationCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/compteam-io-evaluations-api-openapi.yml#/components/schemas/EvaluationCreate",
  "properties": {
    "athlete_id": {
      "type": "string",
      "format": "uuid",
      "title": "Athlete Id"
    },
    "target_belt": {
      "type": "string",
      "title": "Target Belt"
    },
    "target_stripes": {
      "type": "string",
      "title": "Target Stripes",
      "default": "0"
    },
    "evaluated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ],
      "title": "Evaluated At"
    },
    "overall_notes": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Overall Notes"
    },
    "visible_to_athlete": {
      "type": "boolean",
      "title": "Visible To Athlete",
      "default": false
    },
    "scores": {
      "items": {
        "$ref": "#/$defs/EvaluationScoreCreate"
      },
      "type": "array",
      "title": "Scores",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "athlete_id",
    "target_belt"
  ],
  "$defs": {
    "EvaluationScoreCreate": {
      "properties": {
        "criterion_code": {
          "type": "string",
          "title": "Criterion Code"
        },
        "score": {
          "type": "integer",
          "title": "Score"
        },
        "notes": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notes"
        }
      },
      "type": "object",
      "required": [
        "criterion_code",
        "score"
      ],
      "title": "EvaluationScoreCreate"
    }
  }
}