fix: 增加 json schema 中文formate

This commit is contained in:
gaoxiaolin.gao 2018-08-01 15:03:41 +08:00
parent ed3ad8aac7
commit 74c036ab52

View File

@ -1,88 +1,100 @@
const formats = [
{
name: "url",
name: 'url',
title: 'url'
},
{
name: "domain",
title: "域名"
name: 'domain',
title: '域名'
},
{
name: "ip",
title: "ipv4 地址"
name: 'ip',
title: 'ipv4 地址'
},
{
name: "id"
name: 'id'
},
{
name: "guid"
name: 'guid'
},
{
name: "now"
name: 'now'
},
{
name: "timestamp"
name: 'timestamp'
},
{
name: "date"
name: 'date'
},
{
name: "time"
name: 'time'
},
{
name: "datetime"
name: 'datetime'
},
{
name: "image",
title: "图片链接"
name: 'image',
title: '图片链接'
},
{
name: "imageData",
title: "图片"
name: 'imageData',
title: '图片'
},
{
name: "email",
title: "邮箱"
name: 'email',
title: '邮箱'
},
{
name: "paragraph",
title: "段落"
name: 'paragraph',
title: '段落'
},
{
name: "sentence",
title: "句子"
name: 'sentence',
title: '句子'
},
{
name: "word",
title: "单词"
name: 'word',
title: '单词'
},
{
name: "title",
title: "标题"
name: 'title',
title: '标题'
},
{
name: "name",
title: "姓名"
name: 'name',
title: '姓名'
},
{
name: "region",
title: "地区"
name: 'region',
title: '地区'
},
{
name: "province",
title: "省份"
name: 'province',
title: '省份'
},
{
name: "city",
title: "城市名"
name: 'city',
title: '城市名'
},
{
name: "county",
title: "国家"
name: 'county',
title: '国家'
},
{
name: "mobile",
name: 'mobile',
title: '手机号'
},
{
name: 'cparagraph',
title: '中文本'
},
{
name: 'cname',
title: '中文姓名'
},
{
title: '中文标题',
name: 'ctitle'
}
];