From 3059c20bd5c93870fbc1c13a47a512dde67d4c67 Mon Sep 17 00:00:00 2001 From: April John <30842467+CutestNekoAqua@users.noreply.github.com> Date: Wed, 31 Jul 2024 18:46:52 +0000 Subject: [PATCH] fix: use valid Versia entity state examples Zlorbs :dagger: --- app/entities/page.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/entities/page.mdx b/app/entities/page.mdx index c1206e1..239c0fe 100644 --- a/app/entities/page.mdx +++ b/app/entities/page.mdx @@ -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. \ No newline at end of file +- 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.