"""Payload for r.weather.forecast.cron.response.1_0_0"""
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple

from gwatn.types.ws_forecast_gnode.r_weather_forecast_cron_response.r_weather_forecast_cron_response_1_0_0_payload_base import (
    PayloadBase,
)


class Payload(PayloadBase):
    def is_valid(self) -> Tuple[bool, Optional[List[str]]]:
        is_valid, errors = self.passes_derived_validations()
        if len(errors) > 0:
            errors.insert(
                0, "Errors making r.weather.forecast.cron.response.1_0_0 msg."
            )
        return is_valid, errors

    # hand-code schema axiom validations below
