Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [GO service]Return to 400 when inputting language-region as locale in GET /formatting/number/localizedNumber API. #2957

Open
lyiyu66 opened this issue Jan 8, 2024 · 0 comments
Assignees

Comments

@lyiyu66
Copy link

lyiyu66 commented Jan 8, 2024

Describe the bug
commit: 3c64756

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GET
    /formatting/number/localizedNumber' API.
  2. Input "en-US" and "5.01" as locale and number parameters' values.
  3. 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"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants