Don't want on resolvable Lookup* types (#4524)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
Changes:
|
||||
|
||||
- Don't warn on `Lookup*` types missing (these are resolvable)
|
||||
- Don't clear injected `PortableRegistry` types on runtime upgrade
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,10 @@ const l = logger('metadata');
|
||||
/** @internal */
|
||||
export function validateTypes (registry: Registry, throwError: boolean, types: string[]): string[] {
|
||||
const missing = flattenUniq(extractTypes(types))
|
||||
.filter((type) => !registry.hasType(type))
|
||||
.filter((type) =>
|
||||
!registry.hasType(type) &&
|
||||
!registry.isLookupType(type)
|
||||
)
|
||||
.sort();
|
||||
|
||||
if (missing.length !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user