github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/kat/src/schemas/config.json (about)

     1  {
     2    "$schema": "http://json-schema.org/draft-07/schema#",
     3    "type": "object",
     4    "required": [
     5      "port",
     6      "assetTrailInstanceID",
     7      "protocol",
     8      "apiGateway",
     9      "eventStreams",
    10      "ipfs",
    11      "app2app",
    12      "docExchange",
    13      "appCredentials"
    14    ],
    15    "properties": {
    16      "port": {
    17        "type": "integer"
    18      },
    19      "assetTrailInstanceID": {
    20        "type": "string"
    21      },
    22      "protocol": {
    23        "type": "string",
    24        "enum": ["ethereum", "corda"]
    25      },
    26      "apiGateway": {
    27        "type": "object",
    28        "required": [
    29          "apiEndpoint"
    30        ],
    31        "properties": {
    32          "apiEndpoint": {
    33            "type": "string"
    34          }, 
    35          "auth": {
    36            "type": "object",
    37            "required": [
    38              "user",
    39              "password"
    40            ],
    41            "properties": {
    42              "user": {
    43                "type": "string"
    44              },
    45              "password": {
    46                "type": "string"
    47              }
    48            }
    49          }
    50        }
    51      },
    52      "eventStreams": {
    53        "type": "object",
    54        "required": [
    55          "wsEndpoint",
    56          "topic"
    57        ],
    58        "properties": {
    59          "wsEndpoint": {
    60            "type": "string"
    61          },
    62          "topic": {
    63            "type": "string"
    64          },
    65          "skipSetup": {
    66            "type": "boolean",
    67            "$comment": "Should only be set to true in development or testing"
    68          },
    69          "auth": {
    70            "type": "object",
    71            "required": [
    72              "user",
    73              "password"
    74            ],
    75            "properties": {
    76              "user": {
    77                "type": "string"
    78              },
    79              "password": {
    80                "type": "string"
    81              }
    82            }
    83          },
    84          "config": {
    85            "type": "object",
    86            "required": [
    87              "batchSize",
    88              "batchTimeoutMS",
    89              "errorHandling",
    90              "blockedRetryDelaySec"
    91            ],
    92            "properties": {
    93              "batchSize": {
    94                "type": "number"
    95              },
    96              "batchTimeoutMS": {
    97                "type": "number"
    98              },
    99              "blockedRetryDelaySec":{
   100                "type":"number"
   101              },
   102              "errorHandling":{
   103                "type":"string",
   104                "enum": ["block", "skip"]
   105              }
   106            }
   107          }
   108        }
   109      },
   110      "ipfs": {
   111        "type": "object",
   112        "required": [
   113          "apiEndpoint"
   114        ],
   115        "properties": {
   116          "apiEndpoint": {
   117            "type": "string"
   118          },
   119          "gatewayEndpoint": {
   120            "type": "string"
   121          }
   122        }
   123      },
   124      "app2app": {
   125        "type": "object",
   126        "required": [
   127          "socketIOEndpoint",
   128          "destinations"
   129        ],
   130        "properties": {
   131          "socketIOEndpoint": {
   132            "type": "string"
   133          },
   134          "destinations": {
   135            "type": "object",
   136            "required": [
   137              "kat",
   138              "client"
   139            ],
   140            "properties": {
   141              "kat": {
   142                "type": "string"
   143              },
   144              "client": {
   145                "type": "string"
   146              }
   147            }
   148          }
   149        }
   150      },
   151      "docExchange": {
   152        "type": "object",
   153        "required": [
   154          "apiEndpoint",
   155          "socketIOEndpoint",
   156          "destination"
   157        ],
   158        "properties": {
   159          "apiEndpoint": {
   160            "type": "string"
   161          },
   162          "socketIOEndpoint": {
   163            "type": "string"
   164          },
   165          "destination": {
   166            "type": "string"
   167          }
   168        }
   169      },
   170      "appCredentials": {
   171        "type": "object",
   172        "required": [
   173          "user",
   174          "password"
   175        ],
   176        "properties": {
   177          "user": {
   178            "type": "string"
   179          },
   180          "password": {
   181            "type": "string"
   182          }
   183        }
   184      },
   185      "mongodb": {
   186        "type": "object",
   187        "required": [
   188          "connectionUrl",
   189          "databaseName"
   190        ],
   191        "connectionUrl": {
   192          "type": "string"
   193        },
   194        "databaseName": {
   195          "type": "string"
   196        }
   197      }
   198    }
   199  }