We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db2295e commit e8fa879Copy full SHA for e8fa879
1 file changed
lib/process-schema.ts
@@ -39,7 +39,18 @@ export function schemaToType(
39
const existingSchema = typesAndInterfaces.get(schemaObject.$ref);
40
41
if (!existingSchema) {
42
- throw new Error(`ref used before available: ${schemaObject.$ref}`);
+ // throw new Error(`ref used before available: ${schemaObject.$ref}`);
43
+ console.warn(`ref used before available: ${schemaObject.$ref}`);
44
+ return {
45
+ name,
46
+ hasQuestionToken,
47
+ type: 'unknown',
48
+ docs: [
49
+ {
50
+ description: `WARN: $ref used before available - ${schemaObject.$ref}`,
51
+ },
52
+ ],
53
+ };
54
}
55
56
return {
0 commit comments