Skip to content

Commit

Permalink
typesafe for json to jdl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed May 17, 2024
1 parent 96a5482 commit b63fef2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions jdl/converters/json-to-jdl-converter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ describe('jdl - JSONToJDLConverter', () => {
beforeEach(() => {
jdl = convertSingleContentToJDL({
'generator-jhipster': {
baseName: 'x',
microfrontends: [
{
baseName: 'foo',
Expand All @@ -375,6 +376,7 @@ describe('jdl - JSONToJDLConverter', () => {
it('should not fail', () => {
convertSingleContentToJDL({
'generator-jhipster': {
baseName: 'x',
blueprints: null,
microfrontends: undefined,
},
Expand Down
8 changes: 4 additions & 4 deletions jdl/converters/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ export type JSONGeneratorJhipsterContent = {
serviceDiscoveryType?: string;
skipClient?: boolean;
skipUserManagement?: boolean;
testFrameworks: string[];
websocket: string;
testFrameworks?: string[];
websocket?: string;
promptValues?: Partial<JSONGeneratorJhipsterContent>;
blueprints?: JSONBlueprint[];
microfrontends?: JSONMicrofrontend[];
blueprints?: JSONBlueprint[] | null;
microfrontends?: JSONMicrofrontend[] | null;
} & Record<string, any>;

export type PostProcessedJSONGeneratorJhipsterContent = Omit<
Expand Down

0 comments on commit b63fef2

Please sign in to comment.