acoustic-carpenter-78188
07/12/2024, 5:41 PM@dataclass_json
@dataclass
class RecordField
name: str
age: int
Schema1 = Annotated[StructuredDataset, kwtypes(data=RecordField, ...)
Schema2 = Annotated[StructuredDataset, kwtypes(data={"name": str, "age": int}, ...)
Describe alternatives you've considered
As above, can return a URI, but this is essentially bypassing the type system entirely.
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
07/12/2024, 5:41 PM