refactor: 📝 Make entity IDs be any string

This commit is contained in:
Jesse Wierzbinski 2024-08-02 16:14:03 +02:00
parent 970673d011
commit 84d5d04696
No known key found for this signature in database
2 changed files with 3 additions and 5 deletions

View file

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

View file

@ -13,7 +13,7 @@ Users may be represented by a shorthand address, in the following formats:
```
@username@instance
@uuid@instance
@id@instance
```
For example: