Skip to content

Commit

Permalink
fix: duplicate methods in presets (#1080)
Browse files Browse the repository at this point in the history
Co-authored-by: souvik <[email protected]>
  • Loading branch information
Athul0491 and Souvikns authored Jan 29, 2024
1 parent 3e730f0 commit 14ca7c0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/commands/generate/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,20 +302,8 @@ export default class Models extends Command {
options
});
if (javaIncludeComments) {presets.push(JAVA_DESCRIPTION_PRESET);}
if (javaJackson) {
presets.push({
preset: JAVA_COMMON_PRESET,
options
},
JAVA_JACKSON_PRESET);
}
if (javaConstraints) {
presets.push({
preset: JAVA_COMMON_PRESET,
options
},
JAVA_CONSTRAINTS_PRESET);
}
if (javaJackson) {presets.push(JAVA_JACKSON_PRESET);}
if (javaConstraints) {presets.push(JAVA_CONSTRAINTS_PRESET);}
fileGenerator = new JavaFileGenerator({ presets });
fileOptions = {
packageName
Expand Down

0 comments on commit 14ca7c0

Please sign in to comment.