airflow_pydantic.EventsTimetable

pydantic model airflow_pydantic.EventsTimetable[source]

Bases: BaseModel

Show JSON schema
{
   "title": "EventsTimetable",
   "type": "object",
   "properties": {
      "event_dates": {
         "items": {
            "anyOf": [
               {
                  "format": "date-time",
                  "type": "string"
               },
               {
                  "maxItems": 2,
                  "minItems": 2,
                  "prefixItems": [
                     {
                        "format": "date-time",
                        "type": "string"
                     },
                     {
                        "type": "string"
                     }
                  ],
                  "type": "array"
               }
            ]
         },
         "title": "Event Dates",
         "type": "array"
      },
      "restrict_to_events": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": false,
         "title": "Restrict To Events"
      },
      "presorted": {
         "anyOf": [
            {
               "type": "boolean"
            },
            {
               "type": "null"
            }
         ],
         "default": false,
         "title": "Presorted"
      },
      "description": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Description"
      }
   },
   "required": [
      "event_dates"
   ]
}

Fields:
  • description (str | None)

  • event_dates (List[datetime.datetime | Tuple[datetime.datetime, str]])

  • presorted (bool | None)

  • restrict_to_events (bool | None)

field event_dates: List[Annotated[datetime | Tuple[datetime, str], AfterValidator(func=_datetime_or_datetime_and_timezone)]] [Required]
field restrict_to_events: bool | None = False
field presorted: bool | None = False
field description: str | None = None
instance() EventsTimetable[source]