diff --git a/lambda_function.py b/lambda_function.py index 749988f..3f2c3a2 100644 --- a/lambda_function.py +++ b/lambda_function.py @@ -11,6 +11,7 @@ from collections.abc import Iterator, Mapping from contextlib import contextmanager from dataclasses import dataclass, field +from typing import Any from urllib.parse import urlparse import boto3 @@ -53,7 +54,7 @@ class Payload(pydantic.BaseModel): ## Browse the document in a browser before rendering browser_url: str | None = None browser_headers: dict = pydantic.Field(default_factory=dict) - browser_pdf_options: Mapping[str, str] = pydantic.Field(default_factory=dict) + browser_pdf_options: Mapping[str, Any] = pydantic.Field(default_factory=dict) renderer: Renderers = Renderers.princexml # Output parameters