-
Couldn't load subscription status.
- Fork 19
Open
Description
Motivation
Generated Management models are tightly coupled to an environment since they use ID references. Typically we find that we have multiple environments in our Kontent.ai projects. When creating tools that utilize the Management SDK is becomes difficult to manage n number of models based the number of environments present.
Proposed solution
- Create a new
KontentElementCodenameAttributein the Management SDK to reference fields using codenames instead of IDs. - Update model generation to include a new app setting that controls whether to use
KontentElementIdAttributeorKontentElementCodenameAttribute. By default the tool would useKontentElementIdAttributeto prevent breaking changes. Perhaps in a major release we could swap to usingKontentElementCodenameAttributeas the default.
Additional context
N/A
Metadata
Metadata
Assignees
Labels
No labels