opendatamesh-initiative / odm-specification-dpdescriptor

The Data Product Descriptor Specification (DPDS) Repository
https://dpds.opendatamesh.org/
Apache License 2.0
67 stars 2 forks source link

Enable external references in applicationComponents and infrastructuralComponents array fields #2

Closed andrea-gioia closed 1 year ago

andrea-gioia commented 1 year ago

Fields applicationComponents and infrastructuralComponents of Internal Component Objects MUST accept as valid array items also ReferenceObject in order to allow developers to externalize the definition of an application component or of an infrastructural component in a dedicated file like shown in the following example...

"internalComponents": {
        "applicationComponents": [
            {
               "$ref": "https://github.com/opendatamesh-initiative/cd-ingestion-app/blob/main/examples/tripexecution/apps/cdc-ingestion-app.json"
            }, {
               "$ref": "https://github.com/opendatamesh-initiative/cd-ingestion-app/blob/main/examples/tripexecution/apps/event-processor-app.json" 
            }, {
               "$ref": "https://github.com/opendatamesh-initiative/cd-ingestion-app/blob/main/examples/tripexecution/apps/db-sink-connector--app.json" 
            }
        ],
        "infrastructuralComponents": [{
            {
                "$ref": "https://github.com/opendatamesh-initiative/cd-ingestion-app/blob/main/examples/tripexecution/infra/event-store.json"
            }, {
               "$ref": "https://github.com/opendatamesh-initiative/cd-ingestion-app/blob/main/examples/tripexecution/infra/state-store.json" 
            }
        }]
    }
michelelauni commented 1 year ago

Implemented in e5daaa0