@@ -12,8 +12,6 @@ import type {
1212import { openapi } from '@seamapi/types/connect'
1313import type Metalsmith from 'metalsmith'
1414
15- import { PathMetadataSchema } from './path-metadata.js'
16-
1715const defaultDeprecatedMessage = 'No deprecated message provided'
1816const defaultDraftMessage = 'No draft message provided'
1917const 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