Loading Larkspur mini
Larkspur miniStatus as free text, up to 8 characters.
Chapter 5 of 7
Choices from a list
The answers are valid JSON now, but the free text inside is odd. The order system knows only its statuses, so the team offers a list instead.
This chapter: What changes when a field is a choice from a list instead of free text?
About this chapter
You will learn
- How an enum turns a free answer into a pick between allowed values
- That the pick follows the model’s own preference, shown live
- Why a draw can land on the other value
Words you’ll meet
- Enum
- A field whose value must be one of a fixed list, like on time or delayed.
- Preference
- The share of probability the model gives each allowed value at the step where they part ways.
Step 1 of 4
Status as free text: the JSON holds its shape, but inside the quotes it writes anything.
Make status a list.
Loading Larkspur mini…