mirror of https://codeberg.org/pzp/pzp-dict.git
update protospec
This commit is contained in:
parent
b3a96dbb6d
commit
ceea5b91c1
10
protospec.md
10
protospec.md
|
@ -21,13 +21,13 @@ classDef default fill:#bbb,stroke:#fff0,color:#000
|
|||
Reducing the tangle above in a topological sort allows you to build a record
|
||||
(a JSON object) `{age, name}`.
|
||||
|
||||
## Msg type
|
||||
## Msg metadata domain
|
||||
|
||||
`msg.metadata.type` MUST start with `record_v1__`. E.g. `record_v1__profile`.
|
||||
`msg.metadata.domain` MUST start with `record_v1__`. E.g. `record_v1__profile`.
|
||||
|
||||
## Msg content
|
||||
## Msg data
|
||||
|
||||
`msg.content` format:
|
||||
`msg.data` format:
|
||||
|
||||
```typescript
|
||||
interface MsgContent {
|
||||
|
@ -36,7 +36,7 @@ interface MsgContent {
|
|||
}
|
||||
```
|
||||
|
||||
RECOMMENDED that the `msg.content.update` is as flat as possible (no nesting).
|
||||
RECOMMENDED that the `msg.data.update` is as flat as possible (no nesting).
|
||||
|
||||
## Supersedes links
|
||||
|
||||
|
|
Loading…
Reference in New Issue