Skip to content

Commit

Permalink
fix: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
zWingz committed Jun 28, 2024
1 parent dc787a1 commit 07cd6f5
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions src/code-gen-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,29 +209,54 @@ class CodeGenProcess {
Ts: this.config.Ts,
formatDescription:
this.schemaParserFabric.schemaFormatters.formatDescription.bind(
this.schemaParserFabric.schemaFormatters,
),
this.schemaParserFabric.schemaFormatters,
),
internalCase: internalCase,
classNameCase: pascalCase,
pascalCase: pascalCase,
getInlineParseContent: this.schemaParserFabric.getInlineParseContent.bind(this.schemaParserFabric),
getParseContent: this.schemaParserFabric.getParseContent.bind(this.schemaParserFabric),
getComponentByRef: this.schemaComponentsMap.get.bind(this.schemaComponentsMap),
parseSchema: this.schemaParserFabric.parseSchema.bind(this.schemaParserFabric),
checkAndAddNull: this.schemaParserFabric.schemaUtils.safeAddNullToType.bind(this.schemaParserFabric.schemaUtils),
getInlineParseContent:
this.schemaParserFabric.getInlineParseContent.bind(
this.schemaParserFabric,
),
getParseContent: this.schemaParserFabric.getParseContent.bind(
this.schemaParserFabric,
),
getComponentByRef: this.schemaComponentsMap.get.bind(
this.schemaComponentsMap,
),
parseSchema: this.schemaParserFabric.parseSchema.bind(
this.schemaParserFabric,
),
checkAndAddNull:
this.schemaParserFabric.schemaUtils.safeAddNullToType.bind(
this.schemaParserFabric.schemaUtils,
),
safeAddNullToType:
this.schemaParserFabric.schemaUtils.safeAddNullToType.bind(this.schemaParserFabric.schemaUtils),
this.schemaParserFabric.schemaUtils.safeAddNullToType.bind(
this.schemaParserFabric.schemaUtils,
),
isNeedToAddNull:
this.schemaParserFabric.schemaUtils.isNullMissingInType.bind(this.schemaParserFabric.schemaUtils),
inlineExtraFormatters: this.schemaParserFabric.schemaFormatters.inline.bind(this.schemaParserFabric.schemaFormatters),
formatters: this.schemaParserFabric.schemaFormatters.base.bind(this.schemaParserFabric.schemaFormatters),
formatModelName: this.typeNameFormatter.format.bind(this.typeNameFormatter),
this.schemaParserFabric.schemaUtils.isNullMissingInType.bind(
this.schemaParserFabric.schemaUtils,
),
inlineExtraFormatters:
this.schemaParserFabric.schemaFormatters.inline.bind(

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'additional-properties'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaFormatters.formatObjectContent src/schema-parser/schema-formatters.js:141:50 ❯ Object.object src/schema-parser/schema-formatters.js:48:23 ❯ CodeGenProcess.prepareModelType src/code-gen-process.js:315:72 ❯ CodeGenProcess.collectModelTypes src/code-gen-process.js:285:34 ❯ CodeGenProcess.start src/code-gen-process.js:143:24 ❯ Module.generateApi src/index.js:13:10 ❯ tests/extended.test.ts:24:5

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'additional-properties2'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ CodeGenProcess.getRenderTemplateData src/code-gen-process.js:243:59 ❯ CodeGenProcess.start src/code-gen-process.js:155:19 ❯ Module.generateApi src/index.js:13:10 ❯ tests/extended.test.ts:24:5

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'allof-example'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaRoutes.getRouteName src/schema-routes/schema-routes.js:800:56 ❯ SchemaRoutes.parseRouteInfo src/schema-routes/schema-routes.js:933:28 ❯ src/schema-routes/schema-routes.js:1097:38 ❯ node_modules/lodash/lodash.js:4967:15 ❯ baseForOwn node_modules/lodash/lodash.js:3032:24 ❯ node_modules/lodash/lodash.js:4936:18 ❯ Function.forEach node_modules/lodash/lodash.js:9410:14 ❯ src/schema-routes/schema-routes.js:1096:9

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'anyof-example'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaRoutes.getRouteName src/schema-routes/schema-routes.js:800:56 ❯ SchemaRoutes.parseRouteInfo src/schema-routes/schema-routes.js:933:28 ❯ src/schema-routes/schema-routes.js:1097:38 ❯ node_modules/lodash/lodash.js:4967:15 ❯ baseForOwn node_modules/lodash/lodash.js:3032:24 ❯ node_modules/lodash/lodash.js:4936:18 ❯ Function.forEach node_modules/lodash/lodash.js:9410:14 ❯ src/schema-routes/schema-routes.js:1096:9

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'api-with-examples'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaRoutes.getRouteName src/schema-routes/schema-routes.js:800:56 ❯ SchemaRoutes.parseRouteInfo src/schema-routes/schema-routes.js:933:28 ❯ src/schema-routes/schema-routes.js:1097:38 ❯ node_modules/lodash/lodash.js:4967:15 ❯ baseForOwn node_modules/lodash/lodash.js:3032:24 ❯ node_modules/lodash/lodash.js:4936:18 ❯ Function.forEach node_modules/lodash/lodash.js:9410:14 ❯ src/schema-routes/schema-routes.js:1096:9

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'callback-example'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaFormatters.formatObjectContent src/schema-parser/schema-formatters.js:141:50 ❯ object src/schema-parser/schema-formatters.js:88:22 ❯ SchemaFormatters.formatSchema src/schema-parser/schema-formatters.js:108:25 ❯ SchemaParser.getInlineParseContent src/schema-parser/schema-parser.js:263:51 ❯ SchemaParserFabric.getInlineParseContent src/schema-parser/schema-parser-fabric.js:114:19 ❯ SchemaRoutes.getTypeFromRequestInfo src/schema-routes/schema-routes.js:365:47 ❯ src/schema-routes/schema-routes.js:443:20 ❯ node_modules/lodash/lodash.js:928:11

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'components-responses'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaFormatters.formatObjectContent src/schema-parser/schema-formatters.js:141:50 ❯ object src/schema-parser/schema-formatters.js:88:22 ❯ SchemaFormatters.formatSchema src/schema-parser/schema-formatters.js:108:25 ❯ SchemaParser.getInlineParseContent src/schema-parser/schema-parser.js:263:51 ❯ SchemaParserFabric.getInlineParseContent src/schema-parser/schema-parser-fabric.js:114:19 ❯ SchemaRoutes.getTypeFromRequestInfo src/schema-routes/schema-routes.js:407:42 ❯ src/schema-routes/schema-routes.js:443:20 ❯ node_modules/lodash/lodash.js:928:11

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'explode-param-3'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaRoutes.getRouteName src/schema-routes/schema-routes.js:800:56 ❯ SchemaRoutes.parseRouteInfo src/schema-routes/schema-routes.js:933:28 ❯ src/schema-routes/schema-routes.js:1097:38 ❯ node_modules/lodash/lodash.js:4967:15 ❯ baseForOwn node_modules/lodash/lodash.js:3032:24 ❯ node_modules/lodash/lodash.js:4936:18 ❯ Function.forEach node_modules/lodash/lodash.js:9410:14 ❯ src/schema-routes/schema-routes.js:1096:9

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'full-swagger-scheme'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaFormatters.formatObjectContent src/schema-parser/schema-formatters.js:141:50 ❯ object src/schema-parser/schema-formatters.js:88:22 ❯ SchemaFormatters.formatSchema src/schema-parser/schema-formatters.js:108:25 ❯ SchemaParser.getInlineParseContent src/schema-parser/schema-parser.js:263:51 ❯ SchemaParserFabric.getInlineParseContent src/schema-parser/schema-parser-fabric.js:114:19 ❯ SchemaRoutes.getTypeFromRequestInfo src/schema-routes/schema-routes.js:365:47 ❯ src/schema-routes/schema-routes.js:443:20 ❯ node_modules/lodash/lodash.js:928:11

Check failure on line 243 in src/code-gen-process.js

View workflow job for this annotation

GitHub Actions / build-and-test

tests/extended.test.ts > extended > 'link-example'

TypeError: this.schemaParserFabric.schemaFormatters.inline.bind is not a function ❯ TemplatesWorker.getRenderTemplateData src/code-gen-process.js:243:59 ❯ TemplatesWorker.renderTemplate src/templates-worker.js:225:17 ❯ SchemaRoutes.getRouteName src/schema-routes/schema-routes.js:800:56 ❯ SchemaRoutes.parseRouteInfo src/schema-routes/schema-routes.js:933:28 ❯ src/schema-routes/schema-routes.js:1097:38 ❯ node_modules/lodash/lodash.js:4967:15 ❯ baseForOwn node_modules/lodash/lodash.js:3032:24 ❯ node_modules/lodash/lodash.js:4936:18 ❯ Function.forEach node_modules/lodash/lodash.js:9410:14 ❯ src/schema-routes/schema-routes.js:1096:9
this.schemaParserFabric.schemaFormatters,
),
formatters: this.schemaParserFabric.schemaFormatters.base.bind(
this.schemaParserFabric.schemaFormatters,
),
formatModelName: this.typeNameFormatter.format.bind(
this.typeNameFormatter,
),
fmtToJSDocLine: function fmtToJSDocLine(line, { eol = true }) {
return ` * ${line}${eol ? "\n" : ""}`;
},
NameResolver: NameResolver,
_,
require: this.templatesWorker.requireFnFromTemplate.bind(this.templatesWorker),
require: this.templatesWorker.requireFnFromTemplate.bind(
this.templatesWorker,
),
},
config: this.config,
};
Expand Down

0 comments on commit 07cd6f5

Please sign in to comment.