Skip to content

Commit

Permalink
minor readme review
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Aug 8, 2024
1 parent 8e64ee3 commit 5b5eb0d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,12 @@ APIs for policy evaluation:

`data(data)` -- Provide an external `data` document for policy evaluation.

- `data` MUST be a serializable object or `ArrayBuffer`, which assumed to be a
well-formed stringified JSON
- `data` MUST be a `String`, which assumed to be a well-formed stringified JSON

`evaluate(input)` -- Evaluates the policy using any loaded data and the supplied
`input` document.

- `input` parameter MAY be an `object`, primitive literal or `ArrayBuffer`,
which assumed to be a well-formed stringified JSON
- `input` parameter MUST be a `String` serialized `object`, `array` or primitive literal which assumed to be a well-formed stringified JSON

Example:

Expand Down

0 comments on commit 5b5eb0d

Please sign in to comment.