1. 首页
  2. 数据库
  3. 其它
  4. fluent json validator:一个易于使用可表达且可组合的JSON对象验证器具有流畅的构建器模式界面! 源码

fluent json validator:一个易于使用可表达且可组合的JSON对象验证器具有流畅的构建器模式界面! 源码

上传者: 2021-04-07 06:29:51上传 ZIP文件 422.57KB 热度 1次
流利的JSON验证器 一个易于使用,可表达且可组合的JSON对象验证器,具有流畅的构建器模式界面! // this is what you want to validate: // coming from the user, read from a file, sent back by some API, etc. const person = { name : 'John Doe' , age : 42 , hobbies : [ 'eating' , 'coding' , 'sleeping' ] , favoriteNumberOrColor : 'green' } ; // this is the structure you want your data to have: const personSchema = is . Object ( {
下载地址
用户评论