Skip to content

Daviruss1969/Connector-Schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Connector Schema

Validation connector structure and syntax

About The Project

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

Built With

Go

Getting Started

Prerequisites

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

Installation

  1. Clone the repo
    git clone https://github.com/Daviruss1969/Connector-Schema.git
  2. Go into the directory
    cd Connector-Schema
  3. 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
  4. Up to you to adding it to your $PATH if you want to call it everywhere
    1. Linux :

      1. Add the following line at the end of your ~/.bashrc
      export PATH="/home/user/yourPATH/ConnectorSchema:$PATH"
      1. run the following command
      . ~/.bashrc
    2. Windows :

      Follow this tutorial https://stackoverflow.com/questions/44272416/how-to-add-a-folder-to-path-environment-variable-in-windows-10-with-screensho

Usage

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published