【文件属性】:
文件名称:gen_json_string:从JSON模式生成伪造的JSON数据的实用程序
文件大小:15KB
文件格式:ZIP
更新时间:2021-04-05 06:24:02
OCaml
gen_json_string
OCaml CLI工具可在给定JSON模式作为输入的情况下生成随机JSON值。 目前支持JSON模式的一小部分。
参考
执照
GNU GPL v3或更高版本。
设置
确保您具有dune-project列出的依赖dune-project 。
建造
跑步:
dune build gen_json_string.exe
测试
跑步:
dune exec ./gen_json_string.exe <<<'{"type": "object", "required": ["name", "age"], "properties": {"name": {"type": "string"}, "age": {"type": "integer"}, "likes": {"type": "array", "items": {"type": "string"}}}}'
【文件预览】:
gen_json_string-main
----gen_json_string.ml(3KB)
----dune(141B)
----dune-project(625B)
----LICENSE(34KB)
----README.md(616B)
----gen_json_string.opam(776B)
----.gitignore(42B)