Skip to content

Explore the schema programmatically #7

@EdVanDance

Description

@EdVanDance

Hello and merry Christmas to you 😃

I have an use case where I would like to explore the schema of a specific AUTOSAR version programmatically.

Please correct me if I'm wrong ... it seems to be impossible to do so without creating a valid model as you go, since there is no interface exposed that allows to query for valid sub element types. There is ElementType.find_sub_element(name, version), but I need an Element object to get a list of valid sub elements, which can't be created standalone, they have to be created within a proper context of the model.

Would you be willing to support this use case?

I think an "easy" option would be to allow Element object creation out of context. Then you could just query its properties. But that would be useless for any other use case and might be very confusing.

An other option would be to expose more ElementType interfaces I think. In addition to the already existing properties I would be interested in content_type and a possibility to get valid sub element types.

Is that feasible?

Regards,
Ed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions