blob: 964cae1d4b7f4924aeea79666c957370cec30e1e [file] [log] [blame]
# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: BSD-3-Clause
description: Property enum test
compatible: "enums"
properties:
int-enum:
type: int
enum:
- 1
- 2
- 3
string-enum: # not tokenizable
type: string
enum:
- foo bar
- foo_bar
tokenizable-lower-enum: # tokenizable in lowercase only
type: string
enum:
- bar
- BAR
tokenizable-enum: # tokenizable in lower and uppercase
type: string
enum:
- bar
- whitespace is ok
- 123 is ok
array-enum:
type: array
enum:
- 0
- 10
- 20
- 30
- 40
string-array-enum: # tokenizable string-array
type: string-array
enum:
- bar
- foo
no-enum:
type: string