mirror of
https://github.com/versia-pub/docs.git
synced 2026-03-13 10:59:16 +01:00
refactor: ♻️ Remove extension_type in favour of using the type field on entities
This commit is contained in:
parent
228ef3c98d
commit
596b42474f
9 changed files with 20 additions and 25 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue