【文件属性】:
文件名称:json-from-schema:从JSON模式生成JSON
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-27 16:17:53
JavaScript
json从模式
json-from-schema基于架构生成随机JSON。
用法
var jfs = require ( 'json-from-schema' ) ;
var schema1 = {
id : 'http://www.example.com/herp#'
, type : "object"
, properties : {
someString : { type : 'string' , pattern : 'bl(a){1,10}h' }
, someInt : { type : 'integer' , minimum : 23 , maximum : 42 }
, someEnum : { $ref : '#/definitions/blaEnum' }
, someEnumArray : { type : 'array' ,
【文件预览】:
json-from-schema-master
----package.json(813B)
----test()
--------json-from-schema-test.js(15KB)
----json-from-schema.js(15KB)
----.gitignore(19B)
----README.md(3KB)