Skip to content

Commit 844339c

Browse files
feat(W-15520234): add comment
1 parent 2877d80 commit 844339c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ApiMethodDocumentation.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,13 @@ export class ApiMethodDocumentation extends AmfHelperMixin(LitElement) {
426426
return []
427427
}
428428

429+
/**
430+
* Filters the methodSecurity array to remove elements that have the same '@id' as the elements in the serversSecurity array.
431+
*
432+
* @param {object[]} methodSecurity - The array of method security objects.
433+
* @param {object[]} serversSecurity - The array of server security objects.
434+
* @returns {object[]} The filtered methodSecurity array with unique elements based on the '@id' key.
435+
*/
429436
_computeAsyncSecurityMethod(methodSecurity,serversSecurity){
430437
if(!Array.isArray(methodSecurity) || !Array.isArray(serversSecurity)){
431438
return []

0 commit comments

Comments
 (0)