allowedSourceTypes and allowedTargetTypes are required in Schema

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: Schema
    • None
    • Hide

      Revert back to minOccurs="0"

      Show
      Revert back to minOccurs="0"

      CMIS-Core.xsd:

      <xs:complexType name="cmisTypeRelationshipDefinitionType">
      <xs:complexContent>
      <xs:extension base="cmis:cmisTypeDefinitionType">
      <xs:sequence>
      <xs:element name="allowedSourceTypes" type="xs:string"
      minOccurs="1" maxOccurs="unbounded" />
      <xs:element name="allowedTargetTypes" type="xs:string"
      minOccurs="1" maxOccurs="unbounded" />
      </xs:sequence>
      </xs:extension>
      </xs:complexContent>
      </xs:complexType>

      However, part 1 (2.6.1.1) states:

      allowedSourceTypes : If this attribute is "not set", then the source object MAY be of any type.
      allowedTargetTypes : If this attribute is "not set", then the target object MAY be of any type.

      Note: minOccurs was "0" in previous versions of the spec. I can't find a JIRA issue relating to the change.

            Assignee:
            Unassigned
            Reporter:
            David Caruana (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: