]>
Commit | Line | Data |
---|---|---|
1 | package schema | |
2 | ||
3 | //go:generate stringer -type=ValueType valuetype.go | |
4 | ||
5 | // ValueType is an enum of the type that can be represented by a schema. | |
6 | type ValueType int | |
7 | ||
8 | const ( | |
9 | TypeInvalid ValueType = iota | |
10 | TypeBool | |
11 | TypeInt | |
12 | TypeFloat | |
13 | TypeString | |
14 | TypeList | |
15 | TypeMap | |
16 | TypeSet | |
17 | typeObject | |
18 | ) | |
19 | ||
20 | // NOTE: ValueType has more functions defined on it in schema.go. We can't | |
21 | // put them here because we reference other files. |