vona-module-a-openapi 5.0.36 → 5.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -535,11 +535,6 @@ let ServiceOpenapi = (_dec$2 = Service(), _dec2$2 = BeanInfo({
|
|
|
535
535
|
let argsMeta = appMetadata.getMetadata(SymbolRouteHandlersArgumentsMeta, controller.prototype, actionKey);
|
|
536
536
|
// headers
|
|
537
537
|
const objHeaders = Object.assign({}, this._combineArgHeaders(controllerOpenApiOptions?.headers), this._combineArgHeaders(actionOpenApiOptions?.headers));
|
|
538
|
-
// public
|
|
539
|
-
const _public = actionOpenApiOptions?.public ?? controllerOpenApiOptions?.public;
|
|
540
|
-
if (!_public && !objHeaders.Authorization) {
|
|
541
|
-
objHeaders.Authorization = z.string().optional();
|
|
542
|
-
}
|
|
543
538
|
if (isEmptyObject(objHeaders)) return argsMeta;
|
|
544
539
|
// merge
|
|
545
540
|
if (!argsMeta) argsMeta = [];
|