1# Copyright (c) 2020 Nordic Semiconductor ASA
2# SPDX-License-Identifier: BSD-3-Clause
3
4description: Property enum test
5
6compatible: "enums"
7
8properties:
9  int-enum:
10    type: int
11    enum:
12      - 1
13      - 2
14      - 3
15
16  string-enum:                  # not tokenizable
17    type: string
18    enum:
19      - foo bar
20      - foo_bar
21
22  tokenizable-lower-enum:       # tokenizable in lowercase only
23    type: string
24    enum:
25      - bar
26      - BAR
27
28  tokenizable-enum:             # tokenizable in lower and uppercase
29    type: string
30    enum:
31      - bar
32      - whitespace is ok
33      - 123 is ok
34
35  no-enum:
36    type: string
37