import { readFileSync } from 'node:fs' import { parse } from 'yaml' const doc = parse(readFileSync(new URL('../../docs/openapi.yaml', import.meta.url), 'utf8')) if (doc.openapi !== '3.1.0') { throw new Error('openapi version must be 3.1.0') } if (!doc.paths || !doc.paths['/api/v1/auth/login']) { throw new Error('login path is required') } console.log('openapi ok')