Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cloning for controller.security method #143

Closed
wants to merge 1 commit into from

Conversation

r0610205
Copy link

Fix for #141

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.

@r0610205 r0610205 closed this Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant