You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ X ] What's the actual output vs expected output?
Description
When generating a typescript client, the following enum value is not good translated.
When using enumPropertyNaming = Uppercase :
API : ASKING_FOR:desc
Generated name (default/pascalCase) : AskingFoRdesc
Generated name (uppercase) : ASKING_FO_RDESC
The real name should be : ASKING_FOR_DESC
openapi-generator version
Openapi generator used : 7.10.0
In past version (4.3.0) the result name was : ASKINGFORDESC
OpenAPI declaration file content or url
openapi: "3.0.0"servers:
- url: 'https://lecomptoirdespharmacies.fr/v1'info:
description: "This is the REST API of LCDP products"version: "1.0.0"title: "LCDP REST API"termsOfService: "https://www.lecomptoirdespharmacies.fr/mentions-legales"contact:
email: "[email protected]"license:
name: "Apache 2.0"url: "http://www.apache.org/licenses/LICENSE-2.0.html"tags:
- name: "searchSaleOffer"description: "Search sale offer"paths:
/sale-offers/{saleOfferStatus}:
get:
tags:
- "searchSaleOffer"summary: "Search sale offers by status"operationId: "getSaleOffersByStatus"parameters:
- $ref: "#/components/parameters/SaleOfferStatusParameter"responses:
200:
description: "Success"403:
description: "Access denied"400:
description: "Bad Request"components:
parameters:
SaleOfferStatusParameter:
in: pathname: saleOfferStatusrequired: trueschema:
$ref: '#/components/schemas/SaleOfferStatus'schemas:
SaleOfferStatus:
type: stringenum: ["ASKING_FOR:desc"]description: "Is this sale offer enabled or not"
Bug Report Checklist
Description
When generating a typescript client, the following enum value is not good translated.
When using enumPropertyNaming = Uppercase :
API : ASKING_FOR:desc
Generated name (default/pascalCase) : AskingFoRdesc
Generated name (uppercase) : ASKING_FO_RDESC
The real name should be : ASKING_FOR_DESC
openapi-generator version
Openapi generator used : 7.10.0
In past version (4.3.0) the result name was :
ASKINGFORDESC
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli-7.10.0.jar generate -g typescript-fetch -o output -i openapi.yaml --additional-properties enumPropertyNaming=UPPERCASE
Steps to reproduce
Related issues/PRs
Suggest a fix
See #20391
The text was updated successfully, but these errors were encountered: