generated from one-zero-eight/fastapi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.schema.yaml
87 lines (85 loc) · 1.83 KB
/
settings.schema.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
$schema: http://json-schema.org/draft-07/schema#
$defs:
BotCommand:
additionalProperties: true
description: 'This object represents a bot command.
Source: https://core.telegram.org/bots/api#botcommand'
properties:
command:
title: Command
type: string
description:
title: Description
type: string
required:
- command
- description
title: BotCommand
type: object
Environment:
enum:
- development
- production
title: Environment
type: string
additionalProperties: false
description: Settings for the application.
properties:
$schema:
default: null
title: $Schema
type: string
environment:
$ref: '#/$defs/Environment'
default: development
description: App environment flag
redis_url:
anyOf:
- format: password
type: string
writeOnly: true
- type: 'null'
default: null
description: Redis URL
examples:
- redis://localhost:6379/0
title: Redis Url
bot_token:
description: Telegram bot token from @BotFather
format: password
title: Bot Token
type: string
writeOnly: true
bot_name:
default: null
description: Desired bot name
title: Bot Name
type: string
bot_description:
default: null
description: Bot description
title: Bot Description
type: string
bot_short_description:
default: null
description: Bot short description
title: Bot Short Description
type: string
bot_commands:
default: null
description: Bot commands (displayed in telegram menu)
items:
$ref: '#/$defs/BotCommand'
title: Bot Commands
type: array
admins:
default: []
description: Admin' telegram IDs
items:
type: integer
title: Admins
type: array
required:
- bot_token
title: Settings
type: object