diff options
| author | tv <tv@krebsco.de> | 2026-11-02 11:07:46 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-02 11:07:46 +0100 |
| commit | 2621e21a15d6364981e5bb5016489d7e13cefab8 (patch) | |
| tree | 89549cba4b2f3935f8c33e97136f1cc153f1fe53 /docs/openapi.yaml | |
| parent | a89cb059f6816a2880c1331ca022ede39549b680 (diff) | |
api: drop $float as JSON number is OK
Diffstat (limited to 'docs/openapi.yaml')
| -rw-r--r-- | docs/openapi.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml index f188d69..4e07e8a 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -127,7 +127,8 @@ paths: Typed JSON (`application/vnd.continuum.typed+json`) writes values of every type, tagged (`{"$timestamp": …}`, `{"$bytes": …}`, `{"$uint": …}`, - `{"$counter": …}`, `{"$float": …}`, `{"$text": …}`, `{"$map": …}`). + `{"$counter": …}`, `{"$text": …}`, `{"$map": …}`); a float is a number, and + a number without a fraction written over a float stays one. A scalar of another type is also written as its media type (`api.md`, Types): `application/octet-stream` (bytes), `application/vnd.continuum.int`, `.uint`, `.float`, `.boolean`, `.counter` (decimal or `true`/`false`), or |
