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

Update allowed.md #565

Merged
merged 3 commits into from
Mar 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs-gen/content/rule_set/data_entry/allowed.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,25 @@ The actual value of the signal is expected to contain a subset of the values spe
Example:

```YAML
FavoriteColors:
DogBreeds:
datatype: string[]
type: attribute
allowed: ['RED', 'GREEN', 'BLUE', 'YELLOW', 'BROWN']
description: Driver's favorite colors.
allowed: ['AKITA', 'BOXER', 'DACHSHUND', 'PAPILLON', 'PUG', 'VIZSLA']
description: Brief list of dog breeds.
```

Examples of valid arrays:

```
[] # Empty array
['RED']
['YELLOW', 'BROWN', 'RED', 'GREEN', 'BLUE']
['BLUE', 'BLUE'] # duplication is allowed
['BOXER']
['PAPILLON', 'VIZSLA', 'BOXER', 'AKITA', 'DACHSHUND']
['PUG', 'PUG'] # duplication is allowed
```


Example of an invalid array:

```
['RED', 'BLUE', 'BLACK'] # BLACK is not an allowed value
['PAPILLON', 'VIZSLA', 'LOBSTER'] # LOBSTER is not in the allowed value list
```