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
This commit was merged in pull request #138.
This commit is contained in:
1 parent
279b10164d
commit
430964ceac
4 files changed
+33
-7
No files matched your search
@@ -0,0 +1,20 @@
|
||||
---
|
||||
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 }
|
||||
```
|
||||
Reference in new issue
Block a user