generated from one-zero-eight/fastapi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.schema.yaml
64 lines (64 loc) · 1.63 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
$schema: https://json-schema.org/draft-07/schema
$defs:
Accounts:
additionalProperties: false
description: InNoHassle Accounts integration settings
properties:
api_url:
default: https://api.innohassle.ru/accounts/v0
description: URL of the Accounts API
title: Api Url
type: string
api_jwt_token:
description: JWT token for accessing the Accounts API as a service
format: password
title: Api Jwt Token
type: string
writeOnly: true
required:
- api_jwt_token
title: Accounts
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
app_root_path:
default: ''
description: Prefix for the API path (e.g. "/api/v0")
title: App Root Path
type: string
database_uri:
description: PostgreSQL database settings
examples:
- postgresql+asyncpg://postgres:postgres@localhost:5432/postgres
format: password
title: Database Uri
type: string
writeOnly: true
cors_allow_origin_regex:
default: .*
description: 'Allowed origins for CORS: from which domains requests to the API
are allowed. Specify as a regex: `https://.*.innohassle.ru`'
title: Cors Allow Origin Regex
type: string
accounts:
$ref: '#/$defs/Accounts'
required:
- database_uri
- accounts
title: Settings
type: object