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:
Shahed Nasser
2024-08-30 17:02:02 +03:00
committed by GitHub
parent b9eac4402b
commit dea5af085a
3 changed files with 34 additions and 4 deletions
@@ -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