-
Notifications
You must be signed in to change notification settings - Fork 37
[ICAR-pydantic] Circular reference between types and resources because of icarInventoryTransactionType #543
Copy link
Copy link
Open
Labels
agenda-next-meetingnext-minor-releaseThe issue is not scheduled for the current release, but planned for a release soon after that.The issue is not scheduled for the current release, but planned for a release soon after that.
Description
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
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agenda-next-meetingnext-minor-releaseThe issue is not scheduled for the current release, but planned for a release soon after that.The issue is not scheduled for the current release, but planned for a release soon after that.