docs-util: fix clean script removing Auth tags (#8911)
* docs-util: fix clean script removing Auth tags * fix removal of response types other than json
This commit is contained in:
@@ -76,7 +76,11 @@ class SchemaFactory {
|
||||
let schema = Object.assign({}, schemasFactory[key])
|
||||
|
||||
if (additionalData) {
|
||||
schema = Object.assign(schema, additionalData)
|
||||
schema = Object.assign(schema, {
|
||||
...additionalData,
|
||||
// keep the description
|
||||
description: schema.description || additionalData.description
|
||||
})
|
||||
}
|
||||
|
||||
return schema
|
||||
|
||||
Reference in New Issue
Block a user