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
Add another config option called "returnType" and inline define the structure of the object via jsonschema. Load this in via the apispec (using type object, already done!), and then pass this to the json2pojo library for generating the necessary classes. See code snippet below
Add another config option called "returnType" and inline define the structure of the object via jsonschema. Load this in via the apispec (using type object, already done!), and then pass this to the json2pojo library for generating the necessary classes. See code snippet below
JCodeModel codeModel = new JCodeModel();
new SchemaMapper().generate(codeModel, "ClassName", "com.example", apiSpec.getReturnType);
codeModel.build(new File("output"));
The text was updated successfully, but these errors were encountered: