fix: schema-table object desc

This commit is contained in:
gaoxiaolin.gao 2018-05-03 10:33:38 +08:00
parent c4cb298624
commit 1fa2876eb3
2 changed files with 3 additions and 1 deletions

View File

@ -85,10 +85,12 @@ const SchemaObject = (data, key) => {
Object.keys(properties).map((name, index) => {
let value = properties[name];
let copiedState = checkJsonSchema(JSON.parse(JSON.stringify(value)));
let optionForm = Schema(copiedState, key+'-'+index)
let item = {
name,
key: key+'-'+index,
desc: copiedState.description,
required: required.indexOf(name) != -1
}

View File

@ -149,7 +149,7 @@ function postman(importDataModule){
reqType = 'form';
}
})
console.log('data',data)
for(let item in key){
item = key[item];
if(item === "req_query"){