enums.yaml 626 B

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