enum – Project Haystack

def

enum

Defines an eumeration of string key names. The range may also be applied to format a Bool ordered as "false,true". The string value of this tag may be formatted in one of four ways:

  • dict of dicts keyed by name and Dict values for meta such as doc tag
  • comma separated names on one line
  • names separated by a "\n" newline character
  • markdown unordered list formatted as a series of "- name: description\n"

Enum names should follow valid tag naming rules (start with lowercase ASCII letter and contain only ASCII letters and numbers). However in cases where mapping directly to external enumerations enum names can contain arbitrary characters such as space.

meta

supertypes

val

Data value type

    dict

Map of name/value tag pairs

    scalar

Scalar is an atomic value kind

        str

Unicode string of characters