Skip to content

Commit f357187

Browse files
committed
Used enum instead of string for the signature scheme type
1 parent e8209ab commit f357187

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

connectionfile-spec/connectionfile.schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"required": ["signature_scheme", "key"],
1212
"properties": {
1313
"signature_scheme": {
14-
"type": "string",
14+
"enum": ["hmac-md5","hmac-sha256","hmac-sha512"],
1515
"description": "scheme used to sign the messages"
1616
},
1717
"key": {
@@ -34,23 +34,23 @@
3434
"description": "ip of the machine where the kernel runs"
3535
},
3636
"shell_port": {
37-
"type": "string",
37+
"type": ["integer","string"],
3838
"description": "port used by the shell channel"
3939
},
4040
"control_port": {
41-
"type": "string",
41+
"type": ["integer","string"],
4242
"description": "port used by the control channel"
4343
},
4444
"stdin_port": {
45-
"type": "string",
45+
"type": ["integer","string"],
4646
"description": "port used by the stdin channel"
4747
},
4848
"hb_port": {
49-
"type": "string",
49+
"type": ["integer","string"],
5050
"description": "port used by the heartbeat channel"
5151
},
5252
"iopub_port": {
53-
"type": "string",
53+
"type": ["ingerer","string"],
5454
"description": "port used by the iopub channel"
5555
}
5656
}

0 commit comments

Comments
 (0)