swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

remove leading zeros of enum Number types

Open thorsten-wolf-neptune opened this issue 2 years ago • 0 comments

hi all, first of all i want to say that i LOVE this framework!!!! Now my suggestion: we have to deal with some strange openapi specs that have enum values as a number that contain leading zeros. To make the endresult more resilliant for these strange definitions i suggest to stripe away leading zeros for number enum values. That's a very simple change but it helps for "strange" open api specs. Also added a test for it that doesn't break anything.

thorsten-wolf-neptune avatar Oct 24 '23 16:10 thorsten-wolf-neptune