1 Star 0 Fork 0

John Zhang/json-schema

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
model-metadata.schema.json 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
John Zhang 提交于 2023-03-23 11:19 . update
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://gitee.com/millinch/json-schema/raw/master/model-metadata.schema.json",
"type": "object",
"title": "ModelMetadata",
"description": "业务模型",
"version": "1.0.0",
"required": [
"version",
"name",
"title",
"fields"
],
"properties": {
"version": {
"type": "string",
"description": "模型版本号",
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
},
"name": {
"type": "string",
"pattern": "^[A-Z][a-zA-Z_0-9]*$",
"title": "模型名称",
"description": "以大写字母开头的模型名称,如:User、School"
},
"title": {
"type": "string",
"title": "模型名称",
"description": "必填,在页面展示时用户可理解的名称,生成代码时会作为注释,如:用户、学校"
},
"description": {
"type": "string",
"title": "模型描述",
"description": "可选,生成代码时作为注释"
},
"fields": {
"type": "array",
"minLength": 1,
"title": "字段列表",
"description": "必填,至少有1个字段",
"items": {
"$ref": "field.schema.json"
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/millinch/json-schema.git
git@gitee.com:millinch/json-schema.git
millinch
json-schema
json-schema
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385