{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/epa/refs/heads/main/json-schema/cam-monitor-plan-unit-program-schema.json",
  "title": "UnitProgram",
  "description": "UnitProgram schema from Monitor Plan Management OpenAPI Specification",
  "type": "object",
  "properties": {
    "id": {
      "type": "number",
      "example": 0.0
    },
    "addDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "appStatusCode": {
      "type": "string",
      "example": "active"
    },
    "classCode": {
      "type": "string",
      "example": "string"
    },
    "defaultEndDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "defaultIndicator": {
      "type": "number",
      "example": 0.0
    },
    "emissionsRecordingBeginDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "endDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "nonElectricGeneratingUnitIndicator": {
      "type": "number",
      "example": 0.0
    },
    "nonStandardCode": {
      "type": "string",
      "example": "string"
    },
    "nonStandardComment": {
      "type": "string",
      "example": "string"
    },
    "optInIndicator": {
      "type": "number",
      "example": 0.0
    },
    "programId": {
      "type": "number",
      "example": 0.0
    },
    "programCode": {
      "type": "string",
      "example": "string"
    },
    "trueUpBeginYear": {
      "type": "number",
      "example": 2024
    },
    "unitId": {
      "type": "number",
      "example": 0.0
    },
    "unitMonitorCertBeginDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "unitMonitorCertDeadline": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "unitProgramComment": {
      "type": "string",
      "example": "string"
    },
    "updateDate": {
      "format": "date-time",
      "type": "string",
      "example": "2024-01-15T12:00:00Z"
    },
    "userId": {
      "type": "string",
      "example": "12345"
    },
    "unit": {
      "$ref": "#/components/schemas/Unit"
    },
    "program": {
      "$ref": "#/components/schemas/Program"
    }
  },
  "required": [
    "id",
    "addDate",
    "defaultIndicator",
    "nonElectricGeneratingUnitIndicator",
    "optInIndicator",
    "programId",
    "unitId",
    "userId",
    "unit",
    "program"
  ]
}