🎉 Add update-customer-subscription prepl method

This commit is contained in:
Andrey Antukh 2025-04-16 12:48:05 +02:00
parent 5db5bc65de
commit 05c0f8d69f
2 changed files with 92 additions and 0 deletions

View file

@ -907,6 +907,22 @@
::oapi/type "string"
::oapi/format "iso"}})
(register!
{:type ::timestamp
:pred inst?
:type-properties
{:title "inst"
:description "Satisfies Inst protocol"
:error/message "should be an instant"
:gen/gen (->> (sg/small-int)
(sg/fmap (fn [v] (tm/parse-instant v))))
:decode/string tm/parse-instant
:encode/string inst-ms
:decode/json tm/parse-instant
:encode/json inst-ms
::oapi/type "string"
::oapi/format "number"}})
(register!
{:type ::fn
:pred fn?})