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

[QUESTION][JAVA] How to generate inner static class by spec? #20807

Open
romanov93 opened this issue Mar 5, 2025 · 0 comments
Open

[QUESTION][JAVA] How to generate inner static class by spec? #20807

romanov93 opened this issue Mar 5, 2025 · 0 comments

Comments

@romanov93
Copy link

romanov93 commented Mar 5, 2025

I use jaxrs-cxf generator

    AAA:
      properties:
        someValue:
          type: string
    BBB:
      properties:
        someValue:
          type: string

Is it possible to make BBB is inner class into AAA ?

    public class AAA {
        protected String someValue;
        
        public static class BBB {
            protected String someValue;
        }
    }

maybe I need to change something in my pojo.mustache and use oneOf property?

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

No branches or pull requests

1 participant