Update context version

This commit is contained in:
Basti 2021-09-13 13:17:32 +02:00
parent a5a547d40d
commit bf896a076c

View File

@ -20,7 +20,7 @@ const ChatMessages = function (privateClient, publicClient) {
* *
* @example * @example
* { * {
* "@context": "https://kosmos.org/ns/v1", * "@context": "https://kosmos.org/ns/v2",
* "@id": "chat-messages/irc.libera.chat/channels/kosmos/", * "@id": "chat-messages/irc.libera.chat/channels/kosmos/",
* "@type": "ChatChannel", * "@type": "ChatChannel",
* "service": { * "service": {
@ -48,8 +48,8 @@ const ChatMessages = function (privateClient, publicClient) {
"properties": { "properties": {
"@context": { "@context": {
"type": "string", "type": "string",
"default": "https://kosmos.org/ns/v1", "default": "https://kosmos.org/ns/v2",
"enum": ["https://kosmos.org/ns/v1"] "enum": ["https://kosmos.org/ns/v2"]
}, },
"@id": { "@id": {
"type": "string", "type": "string",
@ -141,8 +141,8 @@ const ChatMessages = function (privateClient, publicClient) {
"required": [] "required": []
}; };
privateClient.declareType("daily-archive", "https://kosmos.org/ns/v1", archiveSchema); privateClient.declareType("daily-archive", "https://kosmos.org/ns/v2", archiveSchema);
publicClient.declareType("daily-archive", "https://kosmos.org/ns/v1", archiveSchema); publicClient.declareType("daily-archive", "https://kosmos.org/ns/v2", archiveSchema);
/** /**
* A daily archive stores chat messages by calendar day. * A daily archive stores chat messages by calendar day.