The anatomy of a Feature
A Feature is an object that has only the following two properties:
- a
keywhich uniquely identifies it, - and a
typewhich determines what sorts of values it should take on.
Features do not themselves carry any values. Values are always assigned to a Context. For more information see, Feature values.
Feature types
Features may be assigned one of the following types:
flag, whose possible values areyesandno;number, which works the same as numbers in JSON;integer, which is restricted to numbers with no decimal places; andstring, which can take on any arbitrary text value.
Validation of the Feature type is applied when assigning a value to a Feature within a Context.