aboutsummaryrefslogtreecommitdiff
path: root/schemas_json/server.yaml
blob: 89c74e4aada1ae0bbf1f5a24f8e957804e425167 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
"$schema": "http://json-schema.org/schema#"
id: "hatter://server.yaml#"
title: Server
description: Server configuration
type: object
required:
    - repositories
properties:
    host:
        title: Host
        description: Listening host name
        type: string
        default: "0.0.0.0"
    port:
        title: TCP port
        description: Listening TCP port
        type: integer
        default: 24000
    db_path:
        title: DB path
        description: SQLite database path
        type: string
        default: hatter.db
    webhook_path:
        title: Webhook path
        type: string
        default: '/webhook'
    repositories:
        title: Repositories
        description: List of all repositories with project definitions
        type: array
        items:
            oneOf:
                - "$ref": "hatter://server.yaml#/definitions/gitlab"
                - "$ref": "hatter://server.yaml#/definitions/github"
definitions:
    gitlab:
        type: object
        required:
            - type
            - token

        properties:
            type:
                enum:
                    - GITLAB
    github:
        type: object
        required:
            - type
        properties:
            type:
                enum:
                    - GITHUB
...