@ -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
|
||||
|
||||
@ -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]}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user