우리는 OData XML에서 우리 자신의 스키마를 생성하여 파트너가보다 간단하고 일반적으로 사용할 수 있도록합니다. 그러나, 나는 자신의 타입 (자기 참조)을 호출하는이 문제를 발견하고이 문제를 해결할 수있는 방법을 찾지 못했습니다.XSD 자체 참조 문제
다음은 발췌 내용입니다.
<xsd:element name="User" type="userType"/>
<xsd:complexType name="userType">
<xsd:all>
<xsd:element name="customManagerList">
<xsd:annotation>
<xsd:documentation>Custom Manager</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="customManager" type="userType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:schema>
customManager 요소 particle에 minOccurs = "0"을 추가하기 만하면됩니다. –