feat: add yaml dependency and update import in OpenAPI server handler

This commit is contained in:
Sam Chau
2026-01-15 16:53:07 +10:30
parent 456ecc298b
commit bcf0a3ba55
3 changed files with 21 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
import { json } from '@sveltejs/kit';
import type { RequestHandler } from '@sveltejs/kit';
import { parse } from '@std/yaml';
import { parse } from 'yaml';
// Cache the parsed spec to avoid re-reading on every request
let cachedSpec: unknown = null;