vmware / vmware/singleton

[BUG][GO service]Return to 500 if number is single digit on GET /formatting/number/localizedNumber API.

Open
#2,956 0 comments 0 reactions 1 assignee View on GitHub

@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
Return to 500 if number is single digit on GET /formatting/number/localizedNumber API.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GET /formatting/number/localizedNumber' API.
  2. Input "en" and "-5.01" as locale and number parameters' values.
  3. See error
    image

Expected behavior
Return to 200 and display correct value:

{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "number": "-5.01",
    "formattedNumber": "-5",
    "scale": "0",
    "locale": "en"
  }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.