mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 09:01:37 +02:00
♻️ Add string length validation to backend RPC methods fields
This commit is contained in:
parent
0721760900
commit
28c2197ba7
13 changed files with 31 additions and 29 deletions
|
@ -91,7 +91,7 @@
|
|||
(sm/define
|
||||
[:map {:title "duplicate-file"}
|
||||
[:file-id ::sm/uuid]
|
||||
[:name {:optional true} :string]]))
|
||||
[:name {:optional true} [:string {:max 250}]]]))
|
||||
|
||||
(sv/defmethod ::duplicate-file
|
||||
"Duplicate a single file in the same team."
|
||||
|
@ -153,7 +153,7 @@
|
|||
(sm/define
|
||||
[:map {:title "duplicate-project"}
|
||||
[:project-id ::sm/uuid]
|
||||
[:name {:optional true} :string]]))
|
||||
[:name {:optional true} [:string {:max 250}]]]))
|
||||
|
||||
(sv/defmethod ::duplicate-project
|
||||
"Duplicate an entire project with all the files"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue