diff options
Diffstat (limited to 'src/server/Session/session_config_schema.ts')
-rw-r--r-- | src/server/Session/session_config_schema.ts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/server/Session/session_config_schema.ts b/src/server/Session/session_config_schema.ts new file mode 100644 index 000000000..25d95c243 --- /dev/null +++ b/src/server/Session/session_config_schema.ts @@ -0,0 +1,25 @@ +import { Schema } from "jsonschema"; + +export const configurationSchema: Schema = { + id: "/Configuration", + type: "object", + properties: { + recipients: { + type: "array", + items: { + type: "string", + pattern: /[^\@]+\@[^\@]+/g + }, + minLength: 1 + }, + heartbeat: { + type: "string", + pattern: /http\:\/\/localhost:\d+\/[a-zA-Z]+/g + }, + signature: { type: "string" }, + masterIdentifier: { type: "string", minLength: 1 }, + workerIdentifier: { type: "string", minLength: 1 }, + silentChildren: { type: "boolean" } + }, + required: ["heartbeat", "recipients", "signature", "masterIdentifier", "workerIdentifier", "silentChildren"] +};
\ No newline at end of file |