Skip to content

Commit 53f795b

Browse files
committed
Fix linter error
1 parent 6885dc5 commit 53f795b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

codegen/lib/report.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import type {
1212
import { openapi } from '@seamapi/types/connect'
1313
import type Metalsmith from 'metalsmith'
1414

15-
import { PathMetadataSchema } from './path-metadata.js'
16-
1715
const defaultDeprecatedMessage = 'No deprecated message provided'
1816
const defaultDraftMessage = 'No draft message provided'
1917
const defaultUndocumentedMessage = 'No undocumented message provided'
@@ -108,11 +106,6 @@ function generateReport(metadata: Metadata): Report {
108106
},
109107
}
110108

111-
const pathMetadata =
112-
'pathMetadata' in metadata
113-
? PathMetadataSchema.parse(metadata.pathMetadata)
114-
: {}
115-
116109
const routes = blueprint.routes ?? []
117110
for (const route of routes) {
118111
processRoute(route, report, metadata)
@@ -260,7 +253,7 @@ function processProperty(
260253
}
261254
}
262255

263-
function processRoute(route: Route, report: Report, metadata: Metadata): void {
256+
function processRoute(route: Route, report: Report): void {
264257
if (route.isUndocumented) {
265258
report.undocumented.routes.push({
266259
name: route.path,
@@ -282,11 +275,6 @@ function processRoute(route: Route, report: Report, metadata: Metadata): void {
282275
})
283276
}
284277

285-
const pathMetadata =
286-
'pathMetadata' in metadata
287-
? PathMetadataSchema.parse(metadata.pathMetadata)
288-
: {}
289-
290278
for (const endpoint of route.endpoints) {
291279
processEndpoint(endpoint, report)
292280
}

0 commit comments

Comments
 (0)