Skip to content

Commit

Permalink
fix: Fixed property names in JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatsnake committed Sep 19, 2022
1 parent 3aff3cd commit 063acf4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -504,16 +504,16 @@ Returned response:

```json
{
"Task":"possibility",
"Words":[
"task":"possibility",
"words":[
"bit","bolt","boy","lip","list","loss","oil",
"pilot","plot","toy","pot","slip","soil","soy",
"spot","spy","stop","tip","top"
]
}
```

> `Task` - a word from which you need to make other words. <br> `Words` - an array of all possible words that are compiled from `Task`.
> `task` - a word from which you need to make other words. <br> `words` - an array of all possible words that are compiled from `task`.
### Countries

Expand Down
6 changes: 3 additions & 3 deletions README_RU.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,16 @@ GET https://shadify.dev/api/anagram/generator

```json
{
"Task":"possibility",
"Words":[
"task":"possibility",
"words":[
"bit","bolt","boy","lip","list","loss","oil",
"pilot","plot","toy","pot","slip","soil","soy",
"spot","spy","stop","tip","top"
]
}
```

> `Task` - слово из которого необходимо составлять другие слова. <br> `Words` - массив всех возможных слов, которые составляются из `Task`.
> `task` - слово из которого необходимо составлять другие слова. <br> `words` - массив всех возможных слов, которые составляются из `task`.
### Countries

Expand Down
4 changes: 2 additions & 2 deletions pkg/anagram/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package anagram

// Core struct of anagram module
type Core struct {
Task string // Task is random word from which you need to make other words
Words []string // Array of all possible words that can be made up from the Task
Task string `json:"task"`// Task is random word from which you need to make other words
Words []string `json:"words"`// Array of all possible words that can be made up from the Task
}

0 comments on commit 063acf4

Please sign in to comment.