fix: typo in openapi documentation

improve-workflow
Meng Zhang 2023-06-16 13:49:45 -07:00
parent 67134eebcb
commit 6eae16d475
2 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ mod languages;
#[schema(example=json!({ #[schema(example=json!({
"language": "python", "language": "python",
"segments": { "segments": {
"prefix": "def fib(n)\n ", "prefix": "def fib(n):\n ",
"suffix": "\n return fib(n - 1) + fib(n - 2)" "suffix": "\n return fib(n - 1) + fib(n - 2)"
} }
}))] }))]

View File

@ -112,7 +112,7 @@
"index": { "index": {
"type": "integer", "type": "integer",
"format": "int32", "format": "int32",
"minimum": 0.0 "minimum": 0
}, },
"text": { "text": {
"type": "string" "type": "string"
@ -149,7 +149,7 @@
"example": { "example": {
"language": "python", "language": "python",
"segments": { "segments": {
"prefix": "def fib(n)\n ", "prefix": "def fib(n):\n ",
"suffix": "\n return fib(n - 1) + fib(n - 2)" "suffix": "\n return fib(n - 1) + fib(n - 2)"
} }
} }
@ -210,7 +210,7 @@
"choice_index": { "choice_index": {
"type": "integer", "type": "integer",
"format": "int32", "format": "int32",
"minimum": 0.0 "minimum": 0
} }
} }
}, },
@ -233,4 +233,4 @@
} }
} }
} }
} }