{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rotageek/json-schema/rotageek-rotageek-asp-net-core-public-api-models-assign-gap-model-schema.json",
  "title": "Rotageek.AspNetCore.PublicApi.Models.AssignGapModel",
  "description": "Object container for a gap assignment action",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rotageek-gaps-api-openapi.yml#/components/schemas/Rotageek.AspNetCore.PublicApi.Models.AssignGapModel",
  "type": "object",
  "properties": {
    "gapId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Unique identifier for the gap to fill"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "Cost of the shift (in monetary terms)",
      "format": "double"
    },
    "workerType": {
      "$ref": "#/$defs/RotaGeek.Core.Enums.WorkerType"
    },
    "user": {
      "$ref": "#/$defs/Rotageek.AspNetCore.PublicApi.Models.GapUserModel"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "RotaGeek.Core.Enums.WorkerType": {
      "enum": [
        "Substantive",
        "Bank",
        "Agency"
      ],
      "type": "string"
    },
    "Rotageek.AspNetCore.PublicApi.Models.GapUserModel": {
      "type": "object",
      "properties": {
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the user"
        },
        "locationId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Unique identifier for the user's primary location"
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ],
          "description": "User first name"
        },
        "surname": {
          "type": [
            "string",
            "null"
          ],
          "description": "User surname"
        }
      },
      "additionalProperties": false,
      "description": "Object container for the user to assign the gap to"
    }
  }
}