找回密码
 立即注册

QQ登录

只需一步,快速开始

dotop2

金牌服务用户

17

主题

41

帖子

347

积分

金牌服务用户

积分
347
dotop2
金牌服务用户   /  发表于:2018-1-10 14:58  /   查看:2880  /  回复:1
无论用文件还是内嵌都不行,截图是用的文件的,

添加数据集的时候,

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

1 个回复

倒序浏览
KearneyKang讲师达人认证 悬赏达人认证
超级版主   /  发表于:2018-1-10 15:49:50
沙发
本帖最后由 KearneyKang 于 2018-1-10 15:54 编辑

您好!
首先shema需要设置,如下:
  1. {  "definitions": {},  "$schema": "http://json-schema.org/draft-06/schema#",  "$id": "http://example.com/example.json",  "type": "object",  "properties": {    "checked": {      "$id": "/properties/checked",      "type": "boolean",      "title": "The Checked Schema",      "description": "An explanation about the purpose of this instance.",      "default": false,      "examples": [        false      ]    },    "dimensions": {      "$id": "/properties/dimensions",      "type": "object",      "properties": {        "width": {          "$id": "/properties/dimensions/properties/width",          "type": "integer",          "title": "The Width Schema",          "description": "An explanation about the purpose of this instance.",          "default": 0,          "examples": [            5          ]        },        "height": {          "$id": "/properties/dimensions/properties/height",          "type": "integer",          "title": "The Height Schema",          "description": "An explanation about the purpose of this instance.",          "default": 0,          "examples": [            10          ]        }      }    },    "id": {      "$id": "/properties/id",      "type": "integer",      "title": "The Id Schema",      "description": "An explanation about the purpose of this instance.",      "default": 0,      "examples": [        1      ]    },    "name": {      "$id": "/properties/name",      "type": "string",      "title": "The Name Schema",      "description": "An explanation about the purpose of this instance.",      "default": "",      "examples": [        "A green door"      ]    },    "price": {      "$id": "/properties/price",      "type": "integer",      "title": "The Price Schema",      "description": "An explanation about the purpose of this instance.",      "default": 0,      "examples": [        15      ]    },    "tags": {      "$id": "/properties/tags",      "type": "array",      "items": {        "$id": "/properties/tags/items",        "type": "string",        "title": "The 0 Schema",        "description": "An explanation about the purpose of this instance.",        "default": "",        "examples": [          "home"        ]      }    }  }}
复制代码
第二步:

JSON文件在附件压缩文件
第三步:

第四步,添加数据集:
最后转换JSON的工具:
https://jsonschema.net/#/

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部