An open API service indexing awesome lists of open source software.

https://github.com/divedylan/node-schema

a simple node schema
https://github.com/divedylan/node-schema

Last synced: about 1 year ago
JSON representation

a simple node schema

Awesome Lists containing this project

README

          

### Document
a node schema tool

### Usage
```bash
cd json
mkdir
cd root
node app
```

### JSON
```json
{
"title": "schema的title",
"description": "schema description",
"json": {
}
}
```

### Schema

```json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "响应格式",
"description": "响应格式规范",
"type": "object",
"properties": {
"code": {
"type": "string"
"description": "响应状态码的枚举,具体见后端定义的enum response code"
},
"message": {
"type": "string",
"description": "响应的信息,一般是针对整个响应的概况,成功,错误信息等"
},
"data": {
"type": "object | array",
"description": "响应的具体内容"
}
},
"required": [
"code",
"message",
"data"
]
}

```