[BUG] [GO service]Return to 400 when inputting language-region as locale in GET /formatting/number/localizedNumber API.
Open
@Xiaochao8 is already working on this.
Since Jan 8, 2024.
area/go-service
kind/bug
priority/medium
- Dominant language
- Java
- Stars
- 72
- Forks
- 69
- Avg merge
- 23h 32m
- Merged PRs (30d)
- 4
Description
Describe the bug
commit: 3c64756c205b147b882f64f01f171e4a90ed8ae0
To Reproduce
Steps to reproduce the behavior:
- Go to 'GET
/formatting/number/localizedNumber' API. - Input "en-US" and "5.01" as locale and number parameters' values.
- See error
{
"response": {
"code": 400,
"message": "invalid Locale 'en-US'"
}
}
Expected behavior
Return to 200 and correct number format:
{
"response": {
"code": 200,
"message": "OK",
"serverTime": ""
},
"signature": "",
"data": {
"number": "5.01",
"formattedNumber": "5",
"scale": "0",
"locale": "en-US"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.