Схема среза ЕХ ex-payload-v1, §15, DBML v5.26 (AURORA-1560, #208; после #203 и #207) #211

Open
aep wants to merge 16 commits from feat/208-ex-payload into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7ef8c1c04d - 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]}