Skip to content

Commit 44b104f

Browse files
committed
chore: lint
1 parent a2b6716 commit 44b104f

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

lib/process-schema.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
import type { OpenAPIV3 } from 'openapi-types';
23
import {
34
Writers,
@@ -314,7 +315,6 @@ export function registerTypesFromSchema(
314315
typesFile: SourceFile,
315316
schemaName: string,
316317
schemaObject: OpenAPIV3.SchemaObject | OpenAPIV3.ReferenceObject,
317-
_refs: $RefParser.$Refs,
318318
) {
319319
// deal with refs
320320
if ('$ref' in schemaObject) {
@@ -396,7 +396,7 @@ export function registerTypesFromSchema(
396396
const newIf = typesFile.addTypeAlias({
397397
name: pascalCase(schemaName),
398398
isExported: true,
399-
// WARN: Duplicated code - recursion beat me
399+
// WARN: Duplicated code - the recursion beat me
400400
type: Writers.objectType({
401401
properties: Object.entries(schemaObject.properties || {}).map(
402402
([propertyName, propertySchema]) => {
@@ -411,16 +411,6 @@ export function registerTypesFromSchema(
411411
},
412412
),
413413
}),
414-
415-
// properties: Object.entries(schemaObject.properties || {}).map(
416-
// ([propertyName, propertySchema]) =>
417-
// schemaToType(
418-
// typesAndInterfaces,
419-
// schemaObject,
420-
// propertyName,
421-
// propertySchema,
422-
// ),
423-
// ),
424414
});
425415

426416
if (schemaObject.description) {

0 commit comments

Comments
 (0)