Skip to content

Commit

Permalink
Improved Access Control general syntax description
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakholdina authored and maxsharabayko committed Sep 7, 2021
1 parent e98146a commit 34ba951
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/features/access-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@ The Stream ID uses UTF-8 encoding.

## General Syntax

This recommended syntax starts with the characters known as an executable
specification in POSIX: `#!`.
The recommended syntax starts with the characters known as an executable specification in POSIX: `#!`.

The next two characters are:
The next character defines the format used for the following key-value pair syntax.
At the moment, there is only one supported syntax identified by `:` and described below.

- `:` - marks the format of the following key-value pair syntax (the only one defined currently).
- The content format, which is either:
- `:` - the comma-separated keys with no nesting
- `{` - like above, but nesting is allowed and must end with `}`
Everything that comes after a syntax identifier is further referenced as the content of the Stream ID.

(Nesting means that you can have multiple level brace-enclosed parts inside.)
The content starts with a `:` or `{` character identifying its format:

The form of the key-value pair is:
- `:` : comma-separated key-value pairs with no nesting,
- `{` : a nested block with one or several key-value pairs that must end with a `}` character. Nesting means that multiple level brace-enclosed parts are allowed.

```js
key1=value1,key2=value2...
```
The form of the key-value pair is

~~~
key1=value1,key2=value2,...
~~~

## Standard Keys

Expand Down

0 comments on commit 34ba951

Please sign in to comment.