77
88from pydantic import BaseModel , Field , field_validator
99
10- from syncmaster .schemas .v1 .transfers .file_format import CSV , JSON , XML , Excel , JSONLine
10+ from syncmaster .schemas .v1 .transfers .file_format import (
11+ CSV ,
12+ JSON ,
13+ ORC ,
14+ XML ,
15+ Excel ,
16+ JSONLine ,
17+ )
1118
1219
1320# At the moment the ReadTransferSourceParams and ReadTransferTargetParams
1421# classes are identical but may change in the future
1522class ReadFileTransferSource (BaseModel ):
1623 directory_path : str
17- file_format : CSV | JSONLine | JSON | Excel | XML = Field (..., discriminator = "type" )
24+ file_format : CSV | JSONLine | JSON | Excel | XML | ORC = Field (..., discriminator = "type" )
1825 options : dict [str , Any ]
1926
2027
2128class ReadFileTransferTarget (BaseModel ):
2229 directory_path : str
2330 # JSON format is not supported for writing
24- file_format : CSV | JSONLine | Excel | XML = Field (
31+ file_format : CSV | JSONLine | Excel | XML | ORC = Field (
2532 ...,
2633 discriminator = "type" ,
2734 )
@@ -32,7 +39,7 @@ class ReadFileTransferTarget(BaseModel):
3239# classes are identical but may change in the future
3340class CreateFileTransferSource (BaseModel ):
3441 directory_path : str
35- file_format : CSV | JSONLine | JSON | Excel | XML = Field (..., discriminator = "type" )
42+ file_format : CSV | JSONLine | JSON | Excel | XML | ORC = Field (..., discriminator = "type" )
3643 options : dict [str , Any ] = Field (default_factory = dict )
3744
3845 class Config :
@@ -49,7 +56,7 @@ def _directory_path_is_valid_path(cls, value):
4956class CreateFileTransferTarget (BaseModel ):
5057 directory_path : str
5158 # JSON format is not supported as a target
52- file_format : CSV | JSONLine | Excel | XML = Field (
59+ file_format : CSV | JSONLine | Excel | XML | ORC = Field (
5360 ...,
5461 discriminator = "type" ,
5562 )
0 commit comments