mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 02:49:16 +01:00
feat: ✨ Mandata Unix-style LF line endings
This commit is contained in:
parent
9e4cec27db
commit
0530c2d50a
2 changed files with 4 additions and 2 deletions
|
|
@ -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).
|
||||
Loading…
Add table
Add a link
Reference in a new issue