mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 16:48:39 +02:00
🎉 Add update-customer-subscription prepl method
This commit is contained in:
parent
5db5bc65de
commit
05c0f8d69f
2 changed files with 92 additions and 0 deletions
|
@ -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?})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue