docs: update website openapi json. (#245)
parent
534d3d5ea7
commit
7cb9f2f07e
|
|
@ -112,7 +112,7 @@
|
||||||
"index": {
|
"index": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"minimum": 0
|
"minimum": 0.0
|
||||||
},
|
},
|
||||||
"text": {
|
"text": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|
@ -124,7 +124,6 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"prompt": {
|
"prompt": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"deprecated": true,
|
|
||||||
"example": "def fib(n):",
|
"example": "def fib(n):",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
},
|
},
|
||||||
|
|
@ -141,6 +140,17 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"type": "string",
|
||||||
|
"nullable": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"example": {
|
||||||
|
"language": "python",
|
||||||
|
"segments": {
|
||||||
|
"prefix": "def fib(n)\n ",
|
||||||
|
"suffix": "\n return fib(n - 1) + fib(n - 2)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -200,7 +210,7 @@
|
||||||
"choice_index": {
|
"choice_index": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"minimum": 0
|
"minimum": 0.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -212,13 +222,11 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": {
|
"prefix": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Content that appears before the cursor in the editor window.",
|
"description": "Content that appears before the cursor in the editor window."
|
||||||
"example": "def fib(n):\n "
|
|
||||||
},
|
},
|
||||||
"suffix": {
|
"suffix": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Content that appears after the cursor in the editor window.",
|
"description": "Content that appears after the cursor in the editor window.",
|
||||||
"example": "\n return fib(n - 1) + fib(n - 2)",
|
|
||||||
"nullable": true
|
"nullable": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue