Skip to content

Commit

Permalink
chore: remove duplicate import
Browse files Browse the repository at this point in the history
  • Loading branch information
princerajpoot20 committed Oct 3, 2023
1 parent 9c5f0e6 commit 8de3097
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modelina-website/src/pages/api/functions/JavaGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { JavaGenerator, JavaOptions, javaDefaultEnumKeyConstraints, javaDefaultModelNameConstraints, javaDefaultPropertyKeyConstraints } from '../../../../../';
import { JavaGenerator, JavaOptions, javaDefaultEnumKeyConstraints, javaDefaultModelNameConstraints, javaDefaultPropertyKeyConstraints, JAVA_JACKSON_PRESET, JAVA_COMMON_PRESET, JAVA_DESCRIPTION_PRESET, JAVA_CONSTRAINTS_PRESET } from '../../../../../';
import { applyGeneralOptions, convertModelsToProps } from './Helpers';
import { ModelinaJavaOptions, ModelProps } from '../../../types';
import { DeepPartial } from '../../../../../lib/types/utils';
import { JAVA_JACKSON_PRESET, JAVA_COMMON_PRESET, JAVA_DESCRIPTION_PRESET, JAVA_CONSTRAINTS_PRESET } from '../../../../../';

/**
* This is the server side part of the Java generator, that takes input and generator parameters and generate the models.
Expand Down Expand Up @@ -95,7 +94,7 @@ export async function getJavaModels(
try {
const generator = new JavaGenerator(options);
const generatedModels = await generator.generateCompleteModels(input, {
packageName: generatorOptions.javaPackageName || 'asyncapi.models'
packageName: generatorOptions.javaPackageName ?? 'asyncapi.models'
});
return convertModelsToProps(generatedModels);
} catch (e : any) {
Expand Down

0 comments on commit 8de3097

Please sign in to comment.