<?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-02-27T08:39:28Z
      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 with required start date and optional end date -->
    <xsd:complexType name="DateRangeOpenEnd">
        <xsd:sequence>
            <xsd:element name="start" type="xsd:date"/>
            <xsd:element name="end" type="xsd:date" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>

</xsd:schema>