diff --git a/packages/snaps-utils/src/manifest/validation.ts b/packages/snaps-utils/src/manifest/validation.ts index 3f8deef7ab..6ed252ae52 100644 --- a/packages/snaps-utils/src/manifest/validation.ts +++ b/packages/snaps-utils/src/manifest/validation.ts @@ -268,7 +268,7 @@ export const SnapManifestStruct = object({ description: size(string(), 1, 280), proposedName: size(string(), 1, 214), repository: optional( - object({ + type({ type: size(string(), 1, Infinity), url: size(string(), 1, Infinity), }), diff --git a/packages/snaps-utils/src/types.ts b/packages/snaps-utils/src/types.ts index aa2bf85cf3..abbba8b2e6 100644 --- a/packages/snaps-utils/src/types.ts +++ b/packages/snaps-utils/src/types.ts @@ -1,7 +1,6 @@ import { instance, is, - object, optional, pattern, refine, @@ -42,7 +41,7 @@ export const NpmSnapPackageJsonStruct = type({ name: NameStruct, main: optional(size(string(), 1, Infinity)), repository: optional( - object({ + type({ type: size(string(), 1, Infinity), url: size(string(), 1, Infinity), }),