refactor(domain): own digest and prefixed identifier shapes in one module (#547)
This commit is contained in:
@@ -4,8 +4,7 @@ import canonicalize from "canonicalize";
|
||||
import { z } from "zod";
|
||||
|
||||
import { jsonObjectSchema, type JsonValue } from "./jsonValue.js";
|
||||
|
||||
const digestSchema = z.string().regex(/^[a-f0-9]{64}$/u);
|
||||
import { digestSchema } from "./../domain/digests.js";
|
||||
|
||||
/** Concrete provider identity committed by an analysis profile. */
|
||||
export const committedProviderSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user