The Connector Schema validates a given input file according to the specified format of an N1 connector. If the input file is not ok, it will print a message according to the error in order to understand the mistake.
The schema that validates the input here
To use the Connector Schema, you need to be able to compile go file. If you can't, check this link to get started : https://go.dev/doc/install
Type this command to be sure the installation is correct
go version
- Clone the repo
git clone https://github.com/Daviruss1969/Connector-Schema.git
- Go into the directory
cd Connector-Schema
- If you are not using Linux, you can build the binary (to be sure the binary will run according to your OS)
go build -o csch.exe
- Up to you to adding it to your $PATH if you want to call it everywhere
-
Linux :
- Add the following line at the end of your ~/.bashrc
export PATH="/home/user/yourPATH/ConnectorSchema:$PATH"
- run the following command
. ~/.bashrc
-
Windows :
Follow this tutorial https://stackoverflow.com/questions/44272416/how-to-add-a-folder-to-path-environment-variable-in-windows-10-with-screensho
-
You can now use the Connector Schema
./csch.exe -i "inputFilePath"
You need to give one valid file path.
The file contains the information about the connector, the field "MetadataJSONParameters" can be parsed or not, the 2 cases will work.