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

Missing version numbers in Java codegen #159

Open
2 tasks
workuser12345 opened this issue Dec 16, 2024 · 0 comments
Open
2 tasks

Missing version numbers in Java codegen #159

workuser12345 opened this issue Dec 16, 2024 · 0 comments

Comments

@workuser12345
Copy link

The generated Java classes do not include the version numbers for any objects. I'm not sure if this is a bug or limitation of Java as a language.

Context

This is an example class of generated code

// this code is generated and should not be modified
package company.platform.example;

import com.fasterxml.jackson.annotation.*;

@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "$class")
@JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
public class ExampleClass extends ParentClass {
   
   // the accessor for the identifying field
   public String getID() {
      return this.getId();
   }

}

Expected Behavior

The output I expect for the class value is

"${'$'}class": "[email protected]",

Actual Behavior

The actual value is

"${'$'}class": "docusign.platform.example.ExampleClass",

Possible Fix

Could this be a limitation of the Java language preventing the codegen from including version numbers?

Steps to Reproduce

  1. Generate Java code for any concerto concept.
  2. The generated code does not include version numbers for the generated concept.

Existing issues

Context

Because of this bug we have opted not to use concerto codegen. Injecting the version info manually using Jackson is complicated and removes a lot of the value of codegen.

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
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