You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/routes/dictionary_fix.go
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@ type DictionaryFixRequest struct {
24
24
}
25
25
26
26
typeDictionaryFixResponsestruct {
27
-
Fixes []Fix`json:"fixes" description:"List of detected issues."`
27
+
Fixes []Fix`json:"fixes" description:"List of detected issues."`
28
+
Correct []Correct`json:"correct" description:"List of correct words."`
28
29
}
29
30
30
31
typeFixstruct {
@@ -34,6 +35,11 @@ type Fix struct {
34
35
Errorstring`json:"error" enum:"unknown_word,invalid_word" description:"Type of detected error. unknown_word - no possible corrections found; invalid_word - the word can be corrected using one of the provided suggestions"`
35
36
}
36
37
38
+
typeCorrectstruct {
39
+
Startint`json:"start" description:"Starting character index of the word in the input."`
40
+
Endint`json:"end" description:"Ending character index."`
0 commit comments