feat: Mandata Unix-style LF line endings

This commit is contained in:
Jesse Wierzbinski 2024-10-18 10:52:00 +02:00
parent 9e4cec27db
commit 0530c2d50a
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -11,6 +11,7 @@ This page lists changes since Working Draft 3. {{ className: 'lead' }}
## Since WD 4
- Removed URI from [Report](/extensions/reports), and replaced `reason` with `tags`.
- Mandated Unix-style `\n` line endings in all text fields.
## Since WD 3

View file

@ -79,7 +79,8 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
## Serialization
When serialized to a string, the JSON representation of an entity should follow the following rules:
When serialized to a string, the JSON representation of an entity must follow the following rules:
- Keys must be sorted lexicographically.
- Should use UTF-8 encoding.
- Must use UTF-8 encoding.
- Must be **signed** using the relevant [User](/entities/user)'s private key, or the [instance's private key](/entities/instance-metadata) if the entity is not associated with a particular user.
- Must use Unix-style `\n` line endings (LF).