Closed hesi726 closed 1 month ago
https://github.com/OpenAPITools/openapi-generator/issues/18429
It should be the same problem, but i have used the latest jar openapi-generator-cli-7.7.0-20240612.160442-81.jar.
requestBody:
description: Audience Category
required: true
content:
application/json:
schema:
allOf:
- $ref: "#/paths/~1audienceCategories~1%7Baudience-category-uuid%7D/get/responses\
/200/content/application~1json/schema/allOf/0"
- type: object
required:
- name
- audience_category_group_uuid
looks like the first $ref in allOf is referencing something that it's not defined.
Description
when product csharp code, it will the follows code
void CreateOrUpdateAudienceCategoryByUUID(string envId, string audienceCategoryUuid, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE);
openapi-generator version
7.6.0
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli-7.6.0.jar generate -i Z:\imgs\abc.yaml -g csharp -o Z:\imgs\abc_openapi_yaml --additional-properties library=httpclient --additional-properties targetFramework=net8.0
Suggest a fix
requestBody: description: Audience Category required: true content: application/json: schema: allOf:
It lookup the requestBody, but cannot find the definition.