You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using controller.secuirty vs method.security the value should cloned rather than copied. If @Secuirty decorator defined as @Security('*', 'basic') then produced value will be ['*'] - Array, which in case of multiple methods will reference the same internal object.
Without cloning the value, underlying swagger2openapi library fails with S2OError: YAML anchor or merge key.
When using
controller.secuirty
vsmethod.security
the value should cloned rather than copied. If@Secuirty
decorator defined as@Security('*', 'basic')
then produced value will be['*']
- Array, which in case of multiple methods will reference the same internal object.Without cloning the value, underlying swagger2openapi library fails with
S2OError: YAML anchor or merge key
.typescript-rest-swagger/src/swagger/generator.ts
Line 139 in a0dd006
Proposed fix:
The text was updated successfully, but these errors were encountered: