<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:dates="https://schemas.rutdev.se/xsd/types/dates-1.0.xsd"
    targetNamespace="https://schemas.rutdev.se/xsd/types/dates-1.0.xsd"
    elementFormDefault="qualified"
    version="1.0">

    <!--
      Dates Types Schema

      Description: Dates type definitions
      Version: 1.0
      Generated: 2026-04-22T06:56:44Z
      Source: specs/types/dates/1.0/
    -->

    <!-- Date range with required start and end dates -->
    <xsd:complexType name="DateRange">
        <xsd:sequence>
            <xsd:element name="start" type="xsd:date"/>
            <xsd:element name="end" type="xsd:date"/>
        </xsd:sequence>
    </xsd:complexType>

    <!-- Date range where either boundary may be absent. Absent start means the start date existed but is historically unknown. Absent end means the period is ongoing. At least one of start or end must be present. -->
    <xsd:complexType name="DateRangeOpenEnded">
        <xsd:sequence>
            <xsd:element name="start" type="xsd:date" minOccurs="0"/>
            <xsd:element name="end" type="xsd:date" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>