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 | 8033c4dd17a637c21e1dd0c536edc04190851a21 (patch) | |
| tree | 34ac46ca8233fe32bd33b581f150e075d4fcd42d /docs | |
| parent | 2ad5d7c6ba0962e7ba2a8c919cddc1c2fa136f63 (diff) | |
api: drop $float as JSON number is OK
Diffstat (limited to 'docs')
| -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 |
