Skip to content

Commit 30dc246

Browse files
committed
fix(manifest-server): descriptor can be dict
1 parent 5378cef commit 30dc246

File tree

1 file changed

+2
-2
lines changed
  • airbyte_cdk/manifest_server/api_models

1 file changed

+2
-2
lines changed

airbyte_cdk/manifest_server/api_models/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
fixing type mismatches like slice_descriptor being a string rather than an object.
77
"""
88

9-
from typing import Any, Dict, List, Optional
9+
from typing import Any, Dict, List, Optional, Union
1010

1111
from pydantic import BaseModel
1212

@@ -59,7 +59,7 @@ class StreamReadSlices(BaseModel):
5959
"""Slices of data read from a stream."""
6060

6161
pages: List[StreamReadPages]
62-
slice_descriptor: Optional[str] # This is actually a string at runtime, not Dict[str, Any]
62+
slice_descriptor: Optional[Union[Dict[str, Any], str]] # We're seeing strings at runtime
6363
state: Optional[List[Dict[str, Any]]] = None
6464
auxiliary_requests: Optional[List[AuxiliaryRequest]] = None
6565

0 commit comments

Comments
 (0)