11import { OpenAPIV3 } from "openapi-types" ;
2- import { chk } from "src/helpers/chalk.helper" ;
32import { ALLOWED_METHODS } from "../const/openapi.const" ;
43import { GenerateOptions } from "../types/options" ;
54import { ValidationError } from "../types/validation" ;
@@ -254,7 +253,7 @@ export class SchemaResolver {
254253 operation . parameters ?. map ( ( parameter ) => {
255254 const parameterObject = parameter as OpenAPIV3 . ParameterObject ;
256255 const parameterSchema = parameterObject . schema ;
257- const schemaInfo = `operation ${ chk . gray ( operation . operationId ?? path ) } parameter ${ chk . gray ( parameterObject . name ) } ` ;
256+ const schemaInfo = `operation ${ operation . operationId ?? path } parameter ${ parameterObject . name } ` ;
258257
259258 schemaRefObjs . push ( ...getSchemaRefObjs ( this , parameterSchema , schemaInfo ) ) ;
260259
@@ -276,7 +275,7 @@ export class SchemaResolver {
276275 const matchingMediaType = mediaTypes . find ( isParamMediaTypeAllowed ) ;
277276 if ( matchingMediaType ) {
278277 const matchingMediaSchema = requestBodyObj . content ?. [ matchingMediaType ] ?. schema ;
279- const schemaInfo = `operation ${ chk . gray ( operation . operationId ) } request body` ;
278+ const schemaInfo = `operation ${ operation . operationId } request body` ;
280279
281280 schemaRefObjs . push ( ...getSchemaRefObjs ( this , matchingMediaSchema , schemaInfo ) ) ;
282281
@@ -298,7 +297,7 @@ export class SchemaResolver {
298297 const matchingMediaType = mediaTypes . find ( isMediaTypeAllowed ) ;
299298 if ( matchingMediaType ) {
300299 const matchingMediaSchema = responseObj . content ?. [ matchingMediaType ] ?. schema ;
301- const schemaInfo = `operation ${ chk . gray ( operation . operationId ) } response body` ;
300+ const schemaInfo = `operation ${ operation . operationId } response body` ;
302301
303302 schemaRefObjs . push ( ...getSchemaRefObjs ( this , matchingMediaSchema , schemaInfo ) ) ;
304303
0 commit comments