<?xml version = "1.0" encoding = "UTF-8"?>
<!-- Data dictionary id:      org.imsglobal.lti-ags.v2p0.lineitem -->

<xs:schema xmlns="http://www.imsglobal.org/xsd/lti-ags"
           targetNamespace="http://www.imsglobal.org/xsd/lti-ags"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           version="IMS LIS 2.0 Line Item"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">


  <xs:complexType name="LineItem.Type" abstract="false" mixed="false">
        <xs:annotation>
            <xs:documentation source="documentation">
                The LineItem complexType is the container for a Line Item definition
                This replicates the model created in the LTI Assignments and Grades Services
                specification.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="scoreMaximum" type="xs:decimal" minOccurs="1" maxOccurs="1" />
            <xs:element name="label" type="xs:string" minOccurs="1" maxOccurs="1" />
            <xs:element name="resourceId" type="xs:string" minOccurs="0" maxOccurs="1" />
            <xs:element name="tag" type="xs:string" minOccurs="0" maxOccurs="1" />
            <xs:element name="extensions" type="AGSExtensions.Type" minOccurs = "0" maxOccurs = "unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="AGSExtensions.Type">
      <xs:annotation>
        <xs:documentation source="umldocumentation">
          The PropertySet complexType is the container for the set of properties.
        </xs:documentation>
      </xs:annotation>
      <xs:sequence>
        <xs:element name="property" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:annotation>
              <xs:documentation source="umldocumentation">
                The Property complexType is the container for each property.
              </xs:documentation>
            </xs:annotation>
            <xs:simpleContent>
              <xs:extension base="xs:string">
                <xs:attribute name="name" use="required" type="xs:string"/>
                <xs:attribute name="jsonType">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:enumeration value="string"/>
                      <xs:enumeration value="number"/>
                      <xs:enumeration value="boolean"/>
                      <xs:enumeration value="object"/>
                      <xs:enumeration value="array"/>
                      <xs:enumeration value="other"/>
                    </xs:restriction>
                  </xs:simpleType>
                </xs:attribute>
                <xs:anyAttribute namespace="##other" processContents="strict"/>
              </xs:extension>
            </xs:simpleContent>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="claim" use="required" type="xs:anyURI"/>
    </xs:complexType>


  <xs:element name="lineItem" type="LineItem.Type"/>


</xs:schema>
