petterreinholdtsen / noark5-tester

Test Noark 5 Core REST API
3 stars 3 forks source link

Sort order for VSM elements does not match XSD desciption #22

Open tsodring opened 3 years ago

tsodring commented 3 years ago

When validating arkivstruktur.xml with VSM data, there is a validation problem because the order in arkivstruktur.xml does not match the order defined in vnd-email-v1.xsd.

vnd-email-v1.xsd contains the following:

 <xs:sequence>
    <xs:element name="message-id" type="xs:string" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Message-ID of archived email.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="thread" type="xs:string" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Message-ID of first or previous email in email thread.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>`

but arkivstruktur.xml contains:

<virksomhetsspesifikkeMetadata>
            <vnd-email-v1:vnd-email-v1>
              <vnd-email-v1:thread>&lt;2flinrxp2vy.fsf@diskless.uio.no&gt;</vnd-email-v1:thread>
              <vnd-email-v1:message-id>&lt;2flinrxp2vy.fsf@diskless.uio.no&gt;</vnd-email-v1:message-id>
            </vnd-email-v1:vnd-email-v1>
          </virksomhetsspesifikkeMetadata>