Skip to content

[ICAR-pydantic] Circular reference between types and resources because of icarInventoryTransactionType #543

@jrobichaud

Description

@jrobichaud

I detected a circular dependency with icarInventoryTransactionType:

"$ref": "../resources/icarEventCoreResource.json"

The type icarInventoryTransactionType refers to a resource but it is not supposed to happen.

ICAR Dependency diagram:

flowchart LR
    enums
    resources

    collections
    types
    resources --> types
    resources --> enums
    types --> enums
    collections --> resources
    types --> |'types' should not depend on 'resources'| resources

    linkStyle 4 stroke: red,color: red
Loading

I believe it should be a resource instead.

This affects the ICAR-pydantic when generating the modules since it creates circular imports (when a module import another one and vice versa). (in the meantime, I will assume it is a resource as a workaround)

Metadata

Metadata

Labels

agenda-next-meetingnext-minor-releaseThe issue is not scheduled for the current release, but planned for a release soon after that.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions