Redfish-Service-Validator icon indicating copy to clipboard operation
Redfish-Service-Validator copied to clipboard

Oem Dynamic attribute with Collection improperly searched for type

Open tomasg2012 opened this issue 3 years ago • 0 comments

            <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('

tomasg2012 avatar Nov 12 '21 20:11 tomasg2012