json-schema: Don't error on unsupported string formats.
The string format can be anything and there's no need to fail if the format isn't recognized / interpreted.
This commit is contained in:
Родитель
750dfb95db
Коммит
f33c013aae
|
@ -287,7 +287,9 @@ export function addTypesInSchema(
|
|||
case "date-time":
|
||||
return typeBuilder.getPrimitiveType("date-time");
|
||||
default:
|
||||
return panic(`String format ${schema.format} not supported`);
|
||||
// FIXME: Output a warning here instead to indicate that
|
||||
// the format is uninterpreted.
|
||||
return typeBuilder.getStringType(typeAttributes, undefined);
|
||||
}
|
||||
}
|
||||
return typeBuilder.getStringType(typeAttributes, undefined);
|
||||
|
|
Загрузка…
Ссылка в новой задаче