Post by hanktsai on Mar 23, 2023 5:02:59 GMT
I use Redfish_Service_Validator_229 to validate redfish service with extension to support SNIA Swordfish.
The scenario is that I add a property "DedicatedSpareDrives" to "Links" property and attach to the StoragePools resource. The validator result shows some error that it can not find "DedicatedSpareDrives" property in "Links" property at StoragePool.v1_4_0.
After check, it seems has error in StoragePool_v1.xml file, below BaseType="StoragePool.v1_0_0.Links" should be modify to BaseType="StoragePool.v1_2_0.Links"
====================
Link to the StoragePool_v1.xml
StoragePool_v1.xml,
====================
<ComplexType Name="Links" BaseType="StoragePool.v1_0_0.Links">
<Annotation Term="OData.Description" String="Add a reference to OwningStorageResource associated with this StoragePool."/>
<NavigationProperty Name="OwningStorageResource" Type="Storage.Storage" Nullable="false">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="A pointer to the Storage resource that owns or contains this StoragePool."/>
<Annotation Term="OData.LongDescription" String="This shall be a pointer to the Storage resource that owns or contains this StoragePool."/>
</NavigationProperty>
</ComplexType>
</Schema>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="StoragePool.v1_5_0">
<Annotation Term="Redfish.OwningEntity" String="SNIA"/>
<Annotation Term="Redfish.Release" String="TP v1.2.1"/>
<Annotation Term="OData.Description" String="This version was created to add missing URIs for Systems. It also corrects the long description for SetIdentifier in NVMeSetProperties."/>
<EntityType Name="StoragePool" BaseType="StoragePool.v1_4_0.StoragePool"/>
</Schema>
The scenario is that I add a property "DedicatedSpareDrives" to "Links" property and attach to the StoragePools resource. The validator result shows some error that it can not find "DedicatedSpareDrives" property in "Links" property at StoragePool.v1_4_0.
After check, it seems has error in StoragePool_v1.xml file, below BaseType="StoragePool.v1_0_0.Links" should be modify to BaseType="StoragePool.v1_2_0.Links"
====================
Link to the StoragePool_v1.xml
StoragePool_v1.xml,
====================
<ComplexType Name="Links" BaseType="StoragePool.v1_0_0.Links">
<Annotation Term="OData.Description" String="Add a reference to OwningStorageResource associated with this StoragePool."/>
<NavigationProperty Name="OwningStorageResource" Type="Storage.Storage" Nullable="false">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="A pointer to the Storage resource that owns or contains this StoragePool."/>
<Annotation Term="OData.LongDescription" String="This shall be a pointer to the Storage resource that owns or contains this StoragePool."/>
</NavigationProperty>
</ComplexType>
</Schema>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="StoragePool.v1_5_0">
<Annotation Term="Redfish.OwningEntity" String="SNIA"/>
<Annotation Term="Redfish.Release" String="TP v1.2.1"/>
<Annotation Term="OData.Description" String="This version was created to add missing URIs for Systems. It also corrects the long description for SetIdentifier in NVMeSetProperties."/>
<EntityType Name="StoragePool" BaseType="StoragePool.v1_4_0.StoragePool"/>
</Schema>