mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
fix: use valid Versia entity state examples
Zlorbs 🗡️
This commit is contained in:
parent
82b431988c
commit
3059c20bd5
|
|
@ -48,7 +48,7 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
```jsonc {{ 'title': 'Example Entity' }}
|
||||
{
|
||||
"id": "9a8928b6-2526-4979-aab1-ef2f88cd5700",
|
||||
"type": "Freeze",
|
||||
"type": "Undo",
|
||||
"created_at": "2022-01-01T12:00:00Z",
|
||||
"uri": "https://bongo.social/notes/9a8928b6-2526-4979-aab1-ef2f88cd5700",
|
||||
}
|
||||
|
|
@ -57,7 +57,8 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
```jsonc {{ 'title': 'With Extensions' }}
|
||||
{
|
||||
"id": "f0aacf0b-df7a-4ee5-a2ba-6c4acafd8642",
|
||||
"type": "Zlorb",
|
||||
"type": "Extension",
|
||||
"extension_type": "org.space:ZlorbEntity",
|
||||
"created_at": "2023-04-13T08:00:00Z",
|
||||
"uri": "https://space.org/zlorbs/f0aacf0b-df7a-4ee5-a2ba-6c4acafd8642",
|
||||
"extensions": { // [!code focus:100]
|
||||
|
|
@ -80,4 +81,4 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
When serialized to a string, the JSON representation of an entity should follow the following rules:
|
||||
- Keys must be sorted lexicographically.
|
||||
- Should use UTF-8 encoding.
|
||||
- Must be **signed** using the relevant [User](/entities/users)'s private key, or the [Server Actor](/entities/server-actor)'s private key if the entity is not associated with a particular user.
|
||||
- Must be **signed** using the relevant [User](/entities/users)'s private key, or the [Server Actor](/entities/server-actor)'s private key if the entity is not associated with a particular user.
|
||||
|
|
|
|||
Loading…
Reference in a new issue