Redfish-Service-Validator
Redfish-Service-Validator copied to clipboard
Oem Dynamic attribute with Collection improperly searched for type
<ComplexType Name="Attributes">
<Annotation Term="OData.AdditionalProperties" Bool="false"/>
<Annotation Term="Redfish.DynamicPropertyPatterns">
<Collection>
<Record>
<PropertyValue Property="Pattern" String="[A-Za-z0-9]+"/>
<PropertyValue Property="Type" String="Collection(DellBootSources.v1_0_0.Entry)"/>
</Record>
</Collection>
</Annotation>
</ComplexType>
Afflicted line is
type_obj = sub_obj.Type.catalog.getSchemaDocByClass(my_odata_type).getTypeInSchemaDoc(my_odata_type)
... where my_odata_type is the Type string above. Simple fix should strip my_odata_type from 'Collection('