Skip to content

Commit

Permalink
fix(various):
Browse files Browse the repository at this point in the history
 - improve bundle
  • Loading branch information
thib3113 committed Nov 28, 2023
1 parent fb4f610 commit 85b20da
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/Converters/FastestValidatorConverter.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { FastestValidatorType, FVOARuleMetaKeys, Mapper, Mappers, ObjectRules } from '../types/index.js';
import { getOpenApiType, MappersOptions } from '../mappers.js';
import {
import type {
RuleAny,
RuleArray,
RuleBoolean,
Expand All @@ -27,8 +27,8 @@ import {
ValidationSchema,
ValidationSchemaMetaKeys
} from 'fastest-validator';
import { OpenAPIV3_1 as OA, OpenAPIV3_1 as OA3_1 } from 'openapi-types';
import { IConverter } from './IConverter.js';
import type { OpenAPIV3_1 as OA, OpenAPIV3_1 as OA3_1 } from 'openapi-types';
import type { IConverter } from './IConverter.js';
import { EOAExtensions } from '../constants.js';

export class FastestValidatorConverter implements IConverter {
Expand Down
6 changes: 3 additions & 3 deletions src/MoleculerOpenAPIGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import Moleculer from 'moleculer';
import type { OpenAPIV3_1 as OA3_1 } from 'openapi-types';
import type { FastestValidatorType, OpenApiMixinSettings } from './types/index.js';
import { ApiSettingsSchemaOpenApi, ECacheMode } from './types/index.js';
import type { ApiSettingsSchema } from 'moleculer-web';
import type { ExcludeRequiredProps } from './types/utils.js';
import { moleculerOpenAPITypes } from './moleculer.js';
import { ApiSettingsSchema } from 'moleculer-web';
import { MoleculerWebRoutesParser } from './MoleculerWebRoutesParser/MoleculerWebRoutesParser.js';
import { Alias } from './objects/Alias.js';
import { OpenApiGenerator } from './OpenApiGenerator.js';
import { ExcludeRequiredProps } from './types/utils.js';
import MoleculerError = Moleculer.Errors.MoleculerError;
import { DEFAULT_CONTENT_TYPE, DEFAULT_MULTI_PART_FIELD_NAME, OpenApiVersionsSupported } from './constants.js';
import MoleculerError = Moleculer.Errors.MoleculerError;

export const defaultSettings: Required<ExcludeRequiredProps<OpenApiMixinSettings>> & Partial<OpenApiMixinSettings> = {
onlyLocal: false, // build schema from only local services
Expand Down
4 changes: 2 additions & 2 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiRouteSchema } from 'moleculer-web';
import { openApiServiceOpenApi } from './openapi.js';
import type { ApiRouteSchema } from 'moleculer-web';
import type { openApiServiceOpenApi } from './openapi.js';

export type tSystemParams = {
description?: string;
Expand Down
10 changes: 5 additions & 5 deletions src/types/openapi.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { OpenAPIV3_1 as OA3_1 } from 'openapi-types';
import { ApiRouteSchema, ApiSettingsSchema } from 'moleculer-web';
import { AliasRouteSchema } from './moleculer-web.js';
import { OpenApiDefined, OptionalOrFalse, SubOptionalOrFalse } from './utils.js';
import { ActionSchema, ServiceSettingSchema } from 'moleculer';
import type { OpenAPIV3_1 as OA3_1 } from 'openapi-types';
import type { ApiRouteSchema, ApiSettingsSchema } from 'moleculer-web';
import type { AliasRouteSchema } from './moleculer-web.js';
import type { OpenApiDefined, OptionalOrFalse, SubOptionalOrFalse } from './utils.js';
import type { ActionSchema, ServiceSettingSchema } from 'moleculer';

/**
* describe an openapi response .
Expand Down

0 comments on commit 85b20da

Please sign in to comment.