【问题标题】:Input validation in webapp [closed]webapp中的输入验证[关闭]
【发布时间】:2014-11-25 22:08:33
【问题描述】:

在 clojure 中验证服务器端请求输入参数的推荐方法是什么?

是否值得为此目的使用任何验证库?你会推荐哪一个?

【问题讨论】:

  • 是客户端验证还是服务器端验证?
  • @marctrem 用于服务器端

标签: web-applications clojure


【解决方案1】:

Formative 提供客户端和服务器端输入验证 => https://github.com/jkk/formative

【讨论】:

    【解决方案2】:

    您的问题不够具体,因此请同时查看这些库:

    https://github.com/Prismatic/schema

    http://yogthos.github.io/lib-noir/noir.validation.html

    【讨论】:

    • 感谢您的回答。顺便说一句,为什么这个问题不够具体?
    • 好吧,您要求“推荐的方法”,但没有说明您想如何验证。所以我不能说哪个更适合你的情况
    【解决方案3】:
    猜你喜欢
    • 1970-01-01
    • 2013-02-28
    • 2012-05-10
    • 1970-01-01
    • 1970-01-01
    • 2011-04-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多