<!--
		SIF Infrastructure Specification 3.7

		(January 21, 2025)
		
		Infrastructure Version: 3.7
		
		license: 
		    name: Apache  2.0
        identifier: Apache-2.0
        url: 'https://home.a4l.org/legal/'
	-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sifassociation.org/infrastructure/3.7" targetNamespace="http://www.sifassociation.org/infrastructure/3.7" elementFormDefault="qualified" version="3.7">
  <xs:complexType name="providerType">
    <xs:sequence>
      <xs:element name="serviceType" type="serviceTypeType" />
      <xs:element name="serviceName" type="xs:token" />
      <xs:element name="contextId" type="xs:token" />
      <xs:element name="zoneId" type="xs:token" />
      <xs:element name="providerName" type="xs:token" />
      <xs:element name="querySupport" type="querySupportType" />
      <xs:element name="mimeTypes" minOccurs="0" type="mediaTypesType" />
      <xs:element name="endPoint" minOccurs="0" type="protocolType" />
      <xs:element name="supportedRequestTypes" minOccurs="0" type="supportedRequestsType" />
    </xs:sequence>
    <xs:attribute name="id" use="optional" type="uuidType" />
  </xs:complexType>

  <xs:element name="provider" type="providerType">
    <xs:key name="providerKey1">
      <xs:selector xpath="." />
      <xs:field xpath="@id" />
    </xs:key>
  </xs:element>

  <xs:complexType name="providerCollectionType">
    <xs:sequence>
      <xs:element name="provider" type="providerType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="providers" type="providerCollectionType" />

</xs:schema>