mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
refactor: 📝 Make entity IDs be any string
This commit is contained in:
parent
970673d011
commit
84d5d04696
|
|
@ -18,10 +18,8 @@ Any field in an entity not marked as `required` may be omitted or set to `null`.
|
|||
<Col>
|
||||
|
||||
<Properties>
|
||||
<Property name="id" type="UUID" required={true} typeLink="/types#uuid">
|
||||
Unique identifier for the entity. Must be unique within the instance.
|
||||
|
||||
Must be a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier). Any version of UUID is allowed.
|
||||
<Property name="id" type="string" required={true}>
|
||||
Unique identifier for the entity. Must be unique within the instance. Can be any string. Max of 512 UTF-8 characters.
|
||||
</Property>
|
||||
<Property name="type" type="string" required={true}>
|
||||
Type of the entity. Only types defined in the Lysand protocol are allowed. Use an [Extension](/extensions) if you want to define custom types.
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ Users may be represented by a shorthand address, in the following formats:
|
|||
|
||||
```
|
||||
@username@instance
|
||||
@uuid@instance
|
||||
@id@instance
|
||||
```
|
||||
|
||||
For example:
|
||||
|
|
|
|||
Loading…
Reference in a new issue