Closed BlackRose01 closed 5 months ago
This is an interesting idea. Would you be willing to contribute your created JSON schemas?
Actually I'm not sure if I have all consumers/transformers transfered to JSON-Schema but here are my current files. Maybe you also have to adjust some points to meet your requirements but basically they should work.
honoconsumer.schema.json httpconsumer.schema.json kafkaconsumer.schema.json mqttconsumer.schema.json opcuaconsumer.schema.json plc4xconsumer.schema.json activemqconsumer.schema.json
jsonatatransformer.schema.json jsonjacksontransformer.schema.json
KR, BlackRose01
Thanks a lot for providing these schemas!
Hi,
I have a suggestion to standardize the validation of the JSON configuration, extend it slightly and make it more readable for external developers. This is especially helpful if you want to change certain options or have to rebuild the whole configuration file.
Therefore, I would recommend the use of JSON Schema. This is a specification for describing the structure of JSON files. Also provided are libraries [1] for it that provide validation of the schema with a JSON string/object.
Since I need to create some AAS Databridges in my current project Fed-X-Pro, I created a tool for me where I can create just these configurations for the AAS. I have the form for this created based on the schema and at the same time validate the data entered against it.
The advantages of this would be the following:
[1] Example for library: Vertx
KR, BlackRose01
JSON Schema for
opcuaconsumer.json