route.item_unknown
Route or route group item is not one it takes.
Area 7, HTTP; not declinable; the next step is usually the agent's.
A route holds authentication: (area 8), input:, output:, sends:, status:, cache:, deadline:, run:, rate_limit: and settle:; success:, query:, path: and headers: are not route items:
type Memo = Text { max_length: 200}type MemoId = Uuid {}type AddMemo = Input { text: Memo}type MemoView = Output { text: Memo}action add_memo(input: AddMemo) -> MemoView { return MemoView { text: input.text }}routes Memos { prefix: /memos POST / { input: AddMemo output: MemoView run: add_memo(input) success: SuccessStatus.created }}
error success isn't something a route holds
--> main.jadpo:28:9
|28 | success: SuccessStatus.created | ^^^^^^^ unknown item
- reason
success:is nowstatus:, which takes aSuccessStatus. A route holdsauthentication,confirm,rate_limit,input,output,sends,status,cache,deadline,runandsettle.- next
- Use
statusinstead ofsuccess(agent) - rule
- route.
item_ unknown - help
- https://jadpo.
dev/docs/errors/route. item_ unknown
Markdown for agents: /docs/errors/route.item_unknown.md.Built from Jadpo main at aee2e8f.