Skip to content

Commit a21e88d

Browse files
poetteringbluca
authored andcommitted
docs: document what integer range we expect from JSON parsers
1 parent e3a0a86 commit a21e88d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/USER_RECORD.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ synthesize and process with numerous programming languages. It's particularly
8989
popular in the web communities, which hopefully should make it easy to link
9090
user credential data from the web and from local systems more closely together.
9191

92+
Please note that this specification assumes that JSON numbers may cover the full
93+
integer range of -2^63 … 2^64-1 without loss of precision (i.e. INT64_MIN …
94+
UINT64_MAX). Please read, write and process user records as defined by this
95+
specification only with JSON implementations that provide this number range.
96+
9297
## General Structure
9398

9499
The JSON user records generated and processed by systemd follow a general

0 commit comments

Comments
 (0)