Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make kernel_id as a conditional optional field #1300

Merged
merged 4 commits into from
Jul 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 9 additions & 4 deletions jupyter_server/event_schemas/kernel_actions/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ description: |
type: object
required:
- action
- kernel_id
- msg
properties:
action:
Expand Down Expand Up @@ -35,11 +34,8 @@ properties:
4. restart
A kernel has been restarted for the given kernel id.
kernel_id:
type: string
kevin-bates marked this conversation as resolved.
Show resolved Hide resolved
description: |
Kernel id.

This is a required field.
allstrive marked this conversation as resolved.
Show resolved Hide resolved
kernel_name:
type: string
description: |
Expand Down Expand Up @@ -69,3 +65,12 @@ properties:
type: string
description: |
Description of the event specified in action.
if:
allstrive marked this conversation as resolved.
Show resolved Hide resolved
properties:
status:
const: error
action:
const: start
else:
required:
- kernel_id