-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a couple of kernel message schemas
- Loading branch information
1 parent
cbf4bcf
commit 7370ded
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://schema.jupyter.org/kernel/messages/v1/kernel-info-request.schema.json", | ||
"version": 1, | ||
"title": "Kernel info request message", | ||
"type": "object", | ||
"properties": { | ||
"header": { | ||
"$ref": "/kernel/messages/v1/message-header.schema.json", | ||
"description": "Message header", | ||
"properties": { | ||
"msg_type": { | ||
"const": "kernel_info_request" | ||
} | ||
} | ||
}, | ||
"content": { | ||
"type": "object" | ||
} | ||
}, | ||
"required": [ | ||
"header", "content" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://schema.jupyter.org/kernel/messages/v1/message-header.schema.json", | ||
"version": 1, | ||
"title": "Message header", | ||
"type": "object", | ||
"properties": { | ||
"msg_id": { | ||
"type": "string", | ||
"description": "Message ID, must be unique per message, typically a UUID" | ||
}, | ||
"session": { | ||
"type": "string", | ||
"description": "Session ID, unique per session, typically a UUID" | ||
}, | ||
"username": { | ||
"type": "string" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"description": "ISO 8601 timestamp for when the message was created" | ||
}, | ||
"msg_type": { | ||
"enum": [ | ||
"kernel_info_request", | ||
"kernel_info_reply", | ||
"some_other_message_type" | ||
] | ||
}, | ||
"version": { | ||
"type": "string", | ||
"description": "Message protocol version" | ||
} | ||
}, | ||
"required": [ | ||
"msg_id", | ||
"session", | ||
"username", | ||
"date", | ||
"msg_type", | ||
"version" | ||
] | ||
} |