Skip to content

Commit 016589d

Browse files
committed
chore: fix build after new changes
1 parent c670ca3 commit 016589d

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

src/schema-parser/schema-parser-fabric.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ export class SchemaParserFabric {
3131
this.schemaComponentsMap = schemaComponentsMap;
3232
this.typeNameFormatter = typeNameFormatter;
3333
this.templatesWorker = templatesWorker;
34-
this.schemaUtils = new SchemaUtils(this);
34+
this.schemaUtils = new SchemaUtils(
35+
this.config,
36+
this.schemaComponentsMap,
37+
this.typeNameFormatter,
38+
);
3539
this.schemaFormatters = new SchemaFormatters(this);
3640
}
3741

src/schema-parser/schema-parser.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import lodash from "lodash";
33
import type { CodeGenConfig } from "../configuration.js";
44
import { SCHEMA_TYPES } from "../constants.js";
55
import type { SchemaComponentsMap } from "../schema-components-map.js";
6-
import type { SchemaWalker } from "../schema-walker.js";
76
import type { TemplatesWorker } from "../templates-worker.js";
87
import type { TypeNameFormatter } from "../type-name-formatter.js";
98
import { sortByProperty } from "../util/sort-by-property.js";
@@ -29,7 +28,6 @@ export class SchemaParser {
2928
schemaFormatters: SchemaFormatters;
3029
schemaUtils: SchemaUtils;
3130
templatesWorker: TemplatesWorker;
32-
schemaWalker: SchemaWalker;
3331

3432
typeName;
3533
schema;
@@ -42,7 +40,6 @@ export class SchemaParser {
4240
this.templatesWorker = schemaParserFabric.templatesWorker;
4341
this.schemaComponentsMap = schemaParserFabric.schemaComponentsMap;
4442
this.typeNameFormatter = schemaParserFabric.typeNameFormatter;
45-
this.schemaWalker = schemaParserFabric.schemaWalker;
4643
this.schemaFormatters = schemaParserFabric.schemaFormatters;
4744
this.schemaUtils = schemaParserFabric.schemaUtils;
4845

src/schema-parser/schema-utils.ts

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,16 @@ import lodash from "lodash";
22
import type { CodeGenConfig } from "../configuration.js";
33
import { SCHEMA_TYPES } from "../constants.js";
44
import type { SchemaComponentsMap } from "../schema-components-map.js";
5-
import type { SchemaWalker } from "../schema-walker.js";
65
import type { TypeNameFormatter } from "../type-name-formatter.js";
76
import { internalCase } from "../util/internal-case.js";
87
import { pascalCase } from "../util/pascal-case.js";
98

109
export class SchemaUtils {
11-
config: CodeGenConfig;
12-
schemaComponentsMap: SchemaComponentsMap;
13-
typeNameFormatter: TypeNameFormatter;
14-
15-
constructor({
16-
config,
17-
schemaComponentsMap,
18-
typeNameFormatter,
19-
}) {
20-
this.config = config;
21-
this.schemaComponentsMap = schemaComponentsMap;
22-
this.typeNameFormatter = typeNameFormatter;
23-
}
10+
constructor(
11+
public config: CodeGenConfig,
12+
public schemaComponentsMap: SchemaComponentsMap,
13+
public typeNameFormatter: TypeNameFormatter,
14+
) {}
2415

2516
getRequiredProperties = (schema) => {
2617
return lodash.uniq(

0 commit comments

Comments
 (0)