Skip to content
Discussion options

You must be logged in to vote

Hey @bluebrown. You'll want to change your examples kwarg as follows:

examples={
    "single": {
        "value": choice(status_list),
    },
    "list": {
        "value": ",".join(sample(status_list, 3)),
    }
}

examples expects a nested dictionary, where at the root your keys are names for each example, like "single" or "list". But the value of that key must be another dictionary containing specific keywords. This section of the documentation discusses the expected format for examples.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bluebrown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants