Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [JAVA] OpenAPI Generator did not generate model if same reference with two different object defined #18611

Open
ananddwivediDev opened this issue May 8, 2024 · 0 comments

Comments

@ananddwivediDev
Copy link

Description

Right now we are making use of https://jdegre.github.io/editor/?url=https://raw.githubusercontent.com/jdegre/5GC_APIs/Rel-17/TS29510_Nnrf_NFManagement.yaml spec which has below field

image

now in this case SubscrCond mode class generate

openapi-generator version

5.4.0 (but did tried with latest version as well )

OpenAPI declaration file content or url

https://jdegre.github.io/editor/?url=https://raw.githubusercontent.com/jdegre/5GC_APIs/Rel-17/TS29510_Nnrf_NFManagement.yaml is the spec that we are making use in order to generate model

Generation Details

mvn clean install

Steps to reproduce

use https://jdegre.github.io/editor/?url=https://raw.githubusercontent.com/jdegre/5GC_APIs/Rel-17/TS29510_Nnrf_NFManagement.yaml spec and other reference file and generate model and look for SubscrCond which only have one variable

private NFTypeEnum nfType; //setter getter .

Ideally it should have two variable as per spec

private NFTypeEnum nfTypeEnum; //setter getter .
private NFType nfType; //setter getter .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant