OpenAPITools / OpenAPITools/openapi-generator
[REQ] [Swift] Decimal encoding
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Locale "en_US" is problematic for me. I would like the result without the grouping separator.
"price": "1500.22"
Is there any way to customize it?
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.
Research direction
Start at samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/Extensions.swift around line 159 and inspect how Decimal values are encoded with the en_US locale. Determine how the behavior could be customized, then verify that the resulting value matches the requested format, such as "1500.22" without a grouping separator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100