Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oem Dynamic attribute with Collection improperly searched for type #439

Open
tomasg2012 opened this issue Nov 12, 2021 · 0 comments
Open

Comments

@tomasg2012
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant