我一直在考虑使用 prismatic/schema 在 clojure 中进行键入和记录,但我很难找到它的完整文档。 github 自述文件提供了一些有用的基本使用信息,但给我留下了很多悬而未决的问题(例如,为什么你需要 (s/one s/Str "s") 中的 "s"参数)。有谁知道棱镜模式的详尽教程或文档来源?
最佳答案
我认为最好的起点是最初的 Clojure Conj 2013 演示文稿:
以下是 GitHub 上的各种文档:
- https://github.com/plumatic/schema
- http://plumatic.github.io/schema-0-2-0-back-with-clojurescript-data-coercion/
- http://plumatic.github.io/schema-for-clojurescript-data-shape-declaration-and-validation/
- https://github.com/plumatic/schema/wiki/Recursive-Schemas
- https://github.com/plumatic/schema/wiki/Defining-New-Schema-Types-1.0
- http://plumatic.github.io/schema/
自从他们将其从 Prismatic
重命名为 Plumatic
以来,看起来他们已经将旧博客文章等合并到 Plumatic github 帐户。其他博客条目:
- https://camdez.com/blog/2015/08/27/practical-data-coercion-with-prismatic-schema/
- https://christopherdbui.com/an-overview-of-prismatics-schema-library-for-clojure/
- http://pygments.org/demo/1076301/
- http://codurance.com/2015/09/14/clojure-schemas-are-swagger/
- https://blog.juxt.pro/posts/component-meet-schema.html
- http://www.infoq.com/news/2014/02/prismatic-schema-coercion
尽情享受吧!
关于clojure - (棱柱形)Plumatic Schema 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36274373/