Open taojing2002 opened 1 year ago
in the system meta schema, the format id is required:
<xs:element name="formatId" type="d1:ObjectFormatIdentifier">
And ObjectFormatIdentifier
should be a none-empty string:
<xs:simpleType name="ObjectFormatIdentifier">
<xs:annotation>
<xs:documentation>A string used to identify an instance of
:class:`Types.ObjectFormat` and MUST be unique within an instance of
:class:`Types.ObjectFormatList`. </xs:documentation>
</xs:annotation>
<xs:restriction base="d1:NonEmptyString"></xs:restriction>
</xs:simpleType>
So the create/update
method should prevent the objects with blank value in object format identifier in the first place.
After we creating objects without format id (format id is blank), the call to /v2/object fails. The error message in the metacat log is: