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]Inconsistent behavior when inputting invalid locale on GET /formatting/number/localizedNumber API between GO and JAVA services. #2959

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

Comments

@lyiyu66
Copy link

lyiyu66 commented Jan 8, 2024

Describe the bug
commit: 3c64756
Inconsistent behavior when inputting invalid locale on GET /formatting/number/localizedNumber API between GO and JAVA services.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GET /formatting/number/localizedNumber' API.
  2. Input "abc" as locale parameter's value.
  3. See the responses:
    GO service: verify the locale validity
{
  "response": {
    "code": 400,
    "message": "invalid Locale 'abc'"
  }
}

JAVA service: return the en format

{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "number": "567",
    "formattedNumber": "567",
    "scale": "0",
    "locale": "abc"
  }
}

Expected behavior
Should have consistent behavior.

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

3 participants