Skip to content

Commit

Permalink
Add TSdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner committed Feb 16, 2021
1 parent 68bc751 commit 3026eb8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import { schema } from '@kbn/config-schema';
import { HasPrivilegesResponse } from './types';

/**
* Validates an Elasticsearch "Has privileges" response against the expected application, actions, and resources.
*
* Note: the `actions` and `resources` parameters must be unique string arrays; any duplicates will cause validation to fail.
*/
export function validateEsPrivilegeResponse(
response: HasPrivilegesResponse,
application: string,
Expand Down

0 comments on commit 3026eb8

Please sign in to comment.