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!({
"language": "python",
"segments": {
"prefix": "def fib(n)\n ",
"prefix": "def fib(n):\n ",
"suffix": "\n return fib(n - 1) + fib(n - 2)"
}
}))]

View File

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