mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 14:28:20 +01:00
feat: ✨ Mandata Unix-style LF line endings
This commit is contained in:
parent
9e4cec27db
commit
0530c2d50a
|
|
@ -11,6 +11,7 @@ This page lists changes since Working Draft 3. {{ className: 'lead' }}
|
||||||
## Since WD 4
|
## Since WD 4
|
||||||
|
|
||||||
- Removed URI from [Report](/extensions/reports), and replaced `reason` with `tags`.
|
- Removed URI from [Report](/extensions/reports), and replaced `reason` with `tags`.
|
||||||
|
- Mandated Unix-style `\n` line endings in all text fields.
|
||||||
|
|
||||||
## Since WD 3
|
## Since WD 3
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,8 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
||||||
|
|
||||||
## Serialization
|
## 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.
|
- 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 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).
|
||||||
Loading…
Reference in a new issue