fix: changelog.md

This commit is contained in:
gaoxiaolin.gao 2018-01-05 11:54:25 +08:00
parent cacf074216
commit de83fb8096
3 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
#### Feature
* 邮件功能中: 1接口信息改动增加通知对应项目所有的成员2默认开启接口改动邮件提醒
* 邮件功能中: 1接口信息改动增加通知对应项目所有的成员2默认开启接口改动邮件提醒3) 增加邮件内容的jsondiff信息
#### Bug Fixed
* 优化接口运行页面插件提醒

View File

@ -668,7 +668,7 @@ var objectType = function objectType(value, path, resolve, traverseCallback) {
var patternProperties = value.patternProperties || {};
var requiredProperties = (value.required || []).slice();
var allowsAdditional = value.additionalProperties === false ? false : true;
var patternPropertyKeys = Object.keys(patternProperties);
var additionalProperties = allowsAdditional
? (value.additionalProperties === true ? {} : value.additionalProperties)

View File

@ -160,8 +160,9 @@ function improtData(importDataModule) {
_.each(api, (res, code) => {
if (code == 200) {
if (res && typeof res === 'object') {
if (res.schema) {
console.log('schema', res.schema);
res_body = handleSchema(res.schema);
} else if (res.description) {
res_body = res.description;
@ -181,6 +182,7 @@ function improtData(importDataModule) {
if (typeof data !== 'object') {
return data;
}
try {
data.definitions = SwaggerData.definitions;
let jsfData = JSON.stringify(jsf(data), null, 2);