The ResourceConfig is the interface that will be used for all objects we choose to be importable/ exportable. We create the ResourceConfig for two reasons:
For each object's implementation, we want to have an explicit input standard when something must be imported. For instance, if we are importing a YAML string in our resolver logic, we transform that into the proper input format before passing it in to the Import function.
We want to control what information should be exportable to the end-user and how it is shown. For instance, if we are exporting a project extension, we want to put its Extension key on the same level as the project extension properties and omit any Extension config information since the end-user should never know about that.
Addresses part of https://github.com/codeamp/circuit/issues/436
The
ResourceConfig
is the interface that will be used for all objects we choose to be importable/ exportable. We create theResourceConfig
for two reasons:For each object's implementation, we want to have an explicit input standard when something must be imported. For instance, if we are importing a YAML string in our resolver logic, we transform that into the proper input format before passing it in to the Import function.
We want to control what information should be exportable to the end-user and how it is shown. For instance, if we are exporting a project extension, we want to put its
Extension
key on the same level as the project extension properties and omit anyExtension
config information since the end-user should never know about that.