Skip to content

Commit f4b5a22

Browse files
authored
type is mandatory, not polite
plaintext messages without type are rejected: https://github.com/ssbc/ssb-validate/blob/master/index.js#L43-L47 (note, encrypted messages may be missing type, or contain arbitary binary data. we cannot validate encrypted messages unless we can decrypt them)
1 parent b1c87a3 commit f4b5a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ <h3 id="message-format">Message format</h3>
806806
</tr>
807807
<tr>
808808
<td>content</td>
809-
<td>Free-form JSON. It is up to applications to interpret what it means. It’s polite to specify a <em>type</em> field so that applications can easily filter out message types they don’t understand.</td>
809+
<td>Free-form JSON. It is up to applications to interpret what it means. A mandatory <em>type</em> field, a string, between 3 and 52 utf8 chars long (inclusive). This is used so that applications can easily filter out message types they don’t understand.</td>
810810
</tr>
811811
</table>
812812

0 commit comments

Comments
 (0)