mirror of
https://github.com/YMFE/yapi.git
synced 2024-11-21 01:13:51 +08:00
fix: schema-table object desc
This commit is contained in:
parent
c4cb298624
commit
1fa2876eb3
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"){
|
||||
|
Loading…
Reference in New Issue
Block a user