i2group / analyze-connect-node-sdk

Develop connectors that bring data from external sources into i2 Analyze by using the i2 Connect Node SDK. The SDK is comprised of documentation, tools, and sample code.
https://i2group.github.io/analyze-connect-node-sdk/
MIT License
3 stars 3 forks source link

Change schema path #5

Closed Timon-IW closed 1 year ago

Timon-IW commented 1 year ago

Hello There,

is there any option to change the Path from where the TS Schema is generated. I don't want to copy the schema every time I edit it. I want a key place where the node-sdk takes it from automatically.

Jonny-Cornwell-i2 commented 1 year ago

Hi Timon,

Currently there is no way to do this but I am keen to gather a bit more information before potentially escalating a feature request. What type of schema(s) are you using (connector, gateway and/or infoStore)?

I would note that if you are using a connector schema we require both the generated TS file and the XML schema as runtime dependencies so there will always need to be a copy of the schema in the connector code.

Jonny

Timon-IW commented 1 year ago

Thank you for the reply,

I was hoping to avoid having the schema in the connector code. We are using and the infoStore and a connector. The connector's components are designed to align with the information store's content when inserted into the chart. Therefore, the schema is specifically designed for the infoStore, and the connector should be capable of utilizing that schema. We hoped that we would not have to copy the schema over every time we were modifying it.

Jonny-Cornwell-i2 commented 1 year ago

Sorry for the delayed response, thanks for the concise reply. I will raise something internally to investigate what we could potentially do to resolve this issue. My immediate thoughts are potentially using environment variables to specify a path for gateway and infoStore schemas which we watch during dev.

Anthony-Johnson-i2 commented 1 year ago

Did you need this to be held open any more @Jonny-Cornwell-i2 ?

Anthony-Johnson-i2 commented 1 year ago

Closing as an internal task has been raised to look into improving this for a future release.