refactor: ♻️ Remove extension_type in favour of using the type field on entities

This commit is contained in:
Jesse Wierzbinski 2024-08-24 14:29:54 +02:00
parent 228ef3c98d
commit 596b42474f
No known key found for this signature in database
9 changed files with 20 additions and 25 deletions

View file

@ -16,7 +16,7 @@ User reactions are (like every other entity) federated to all followers, and can
<Row>
<Col>
<Properties>
<Property name="extension_type" type="string" required>
<Property name="type" type="string" required>
Must be `pub.versia:reactions/Reaction`.
</Property>
<Property name="author" type="URI" required typeLink="/types#uri">
@ -38,8 +38,7 @@ User reactions are (like every other entity) federated to all followers, and can
```jsonc {{ title: "Example Entity" }}
{
"id": "6f27bc77-58ee-4c9b-b804-8cc1c1182fa9",
"type": "Extension", // [!code focus:2]
"extension_type": "pub.versia:reactions/Reaction",
"type": "pub.versia:reactions/Reaction", // [!code focus]
"uri": "https://example.com/actions/6f27bc77-58ee-4c9b-b804-8cc1c1182fa9",
"created_at": "2021-01-01T00:00:00.000Z",
"author": "https://example.com/users/6e0204a2-746c-4972-8602-c4f37fc63bbe", // [!code focus:3]