КФО к старту спринта 4: §8, DBML v5.26, контракт API КФО (AURORA-1546/1547, #206) #207

Open
aep wants to merge 8 commits from feat/206-kfo-contract into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit ce0434f8b1 - Show all commits

View File

@ -2235,7 +2235,7 @@ components:
type:
- string
- 'null'
pattern: ^-?\d{1,5}\.\d{2}$
pattern: ^-?\d+\.\d{2}$
description: deviation_total / base_amount × 100; null при нулевой базе
exceeded:
type: boolean

View File

@ -15,7 +15,7 @@ import kfo_example as ex # noqa: E402
MONEY = {"type": "string", "pattern": r"^-?\d{1,16}\.\d{2}$", "examples": ["588500.00"]}
MONEY_N = {"type": ["string", "null"], "pattern": r"^-?\d{1,16}\.\d{2}$"}
PCT_N = {"type": ["string", "null"], "pattern": r"^-?\d{1,5}\.\d{2}$"}
PCT_N = {"type": ["string", "null"], "pattern": r"^-?\d+\.\d{2}$"} # процент к базе не ограничен (база бывает мала)
SHARE_N = {"type": ["string", "null"], "pattern": r"^-?\d{1,3}\.\d{2}$"}
STYPE = {"type": "string", "enum": ["balance", "income"]}
ROR = {"type": ["string", "null"], "enum": ["VERSION_NOT_EDITABLE", "LOCK_REQUIRED", "LOCKED_BY_OTHER", None]}