check / check (push) Waiting to run
prompts/API_POLICIES.md states sneak's rule from sneak/routewatch#199: a value in an API response is never a string with a label or unit in it. A native value is sent as that type, with its unit in the field name. The list at the top of REPO_POLICIES.md and the two code style commands in the README now name the new file. Model: opus-5-5
21 lines
329 B
Markdown
21 lines
329 B
Markdown
---
|
|
title: API Policies
|
|
last_modified: 2026-10-27
|
|
---
|
|
|
|
A value in an API response is never a string with a label or unit in it. A value
|
|
of a native type is sent as that type, and its unit goes in the field name, for
|
|
example `_ms`.
|
|
|
|
Wrong:
|
|
|
|
```json
|
|
{ "execution_time": "0 ms" }
|
|
```
|
|
|
|
Right:
|
|
|
|
```json
|
|
{ "execution_time_ms": 0 }
|
|
```
|