Merge remote-tracking branch 'origin/feat/206-kfo-contract' into feat/208-ex-payload
This commit is contained in:
commit
7ef8c1c04d
@ -2235,7 +2235,7 @@ components:
|
|||||||
type:
|
type:
|
||||||
- string
|
- string
|
||||||
- 'null'
|
- 'null'
|
||||||
pattern: ^-?\d{1,5}\.\d{2}$
|
pattern: ^-?\d+\.\d{2}$
|
||||||
description: deviation_total / base_amount × 100; null при нулевой базе
|
description: deviation_total / base_amount × 100; null при нулевой базе
|
||||||
exceeded:
|
exceeded:
|
||||||
type: boolean
|
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 = {"type": "string", "pattern": r"^-?\d{1,16}\.\d{2}$", "examples": ["588500.00"]}
|
||||||
MONEY_N = {"type": ["string", "null"], "pattern": r"^-?\d{1,16}\.\d{2}$"}
|
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}$"}
|
SHARE_N = {"type": ["string", "null"], "pattern": r"^-?\d{1,3}\.\d{2}$"}
|
||||||
STYPE = {"type": "string", "enum": ["balance", "income"]}
|
STYPE = {"type": "string", "enum": ["balance", "income"]}
|
||||||
ROR = {"type": ["string", "null"], "enum": ["VERSION_NOT_EDITABLE", "LOCK_REQUIRED", "LOCKED_BY_OTHER", None]}
|
ROR = {"type": ["string", "null"], "enum": ["VERSION_NOT_EDITABLE", "LOCK_REQUIRED", "LOCKED_BY_OTHER", None]}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user