diff --git a/apps/docs/src/components/test-zkapp.tsx b/apps/docs/src/components/test-zkapp.tsx index 7b886be..6b646d1 100644 --- a/apps/docs/src/components/test-zkapp.tsx +++ b/apps/docs/src/components/test-zkapp.tsx @@ -4,7 +4,7 @@ import { clsx } from "clsx"; import { useState, useSyncExternalStore } from "react"; import { sampleCredentialSimple, - samplePresentationRequestHttpsRecrusiveNoContext, + samplePresentationRequestHttpsFromExample, } from "./sample-data"; const store = createStore(); @@ -27,7 +27,7 @@ export const TestZkApp = () => { JSON.stringify(sampleCredentialSimple, null, 2), ); const [presentationRequest, setPresentationRequest] = useState( - JSON.stringify(samplePresentationRequestHttpsRecrusiveNoContext, null, 2), + JSON.stringify(samplePresentationRequestHttpsFromExample, null, 2), ); const [transactionBody, setTransactionBody] = useObjectState({ to: "B62qnVUL6A53E4ZaGd3qbTr6RCtEZYTu3kTijVrrquNpPo4d3MuJ3nb", diff --git a/packages/utils/src/validation.ts b/packages/utils/src/validation.ts index 4a0bad7..3b32335 100644 --- a/packages/utils/src/validation.ts +++ b/packages/utils/src/validation.ts @@ -729,7 +729,15 @@ export const PresentationRequestSchema = z .strict(), }) .strict(), - claims: z.record(SerializedValueSchema), + claims: z.record( + z.union([ + SerializedValueSchema, + DynamicStringSchema, + DynamicArraySchema, + DynamicRecordSchema, + DynamicBytesSchema, + ]), + ), inputContext: z.union([ContextSchema, z.null()]), }) .strict();