Skip to content

Commit b191a0b

Browse files
committed
wip
1 parent 925d222 commit b191a0b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/gen-schemas.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ async function processFile(filePath: string) {
1010
const yamlStr = await Bun.file(normalizedFilePath).text();
1111
const yamlContent = Bun.YAML.parse(yamlStr);
1212
const parsedSchema = SchemaSchema.safeParse(yamlContent);
13+
console.log(`Parsing ${normalizedFilePath}`);
1314
if (parsedSchema.error) {
1415
console.error(`Error while parsing ${normalizedFilePath}`);
1516
console.error(prettifyError(parsedSchema.error));

scripts/shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ function convertToZod(schema: Schema, prefix: string = ""): ConvertResult {
236236
} as const;
237237
}
238238

239+
console.log(`> Conveting ${schema.__schema}`);
240+
239241
switch (schema.__schema) {
240242
case "$ref": {
241243
const ref = schema.$ref;

0 commit comments

Comments
 (0)