mirror of
https://github.com/YMFE/yapi.git
synced 2025-04-06 15:00:26 +08:00
fix: changelog.md
This commit is contained in:
parent
cacf074216
commit
de83fb8096
@ -2,7 +2,7 @@
|
||||
|
||||
#### Feature
|
||||
|
||||
* 邮件功能中: 1)接口信息改动增加通知对应项目所有的成员;2)默认开启接口改动邮件提醒;
|
||||
* 邮件功能中: 1)接口信息改动增加通知对应项目所有的成员;2)默认开启接口改动邮件提醒;3) 增加邮件内容的jsondiff信息
|
||||
|
||||
#### Bug Fixed
|
||||
* 优化接口运行页面插件提醒
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user