fix: use valid Versia entity state examples

Zlorbs 🗡️
This commit is contained in:
April John 2024-07-31 18:46:52 +00:00 committed by GitHub
parent 82b431988c
commit 3059c20bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.