Skip to content

Commit 56c04fe

Browse files
author
Ilyas Gasanov
committed
[DOP-21443] Add XML API schema
1 parent aa7a9ac commit 56c04fe

File tree

1 file changed

+4
-2
lines changed
  • syncmaster/schemas/v1/transfers/file

1 file changed

+4
-2
lines changed

syncmaster/schemas/v1/transfers/file/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ class ReadFileTransferSource(BaseModel):
2020

2121
class ReadFileTransferTarget(BaseModel):
2222
directory_path: str
23+
# JSON format is not supported for writing
2324
file_format: CSV | JSONLine | Excel | XML = Field(
2425
...,
2526
discriminator="type",
26-
) # JSON format is not supported for writing
27+
)
2728
options: dict[str, Any]
2829

2930

@@ -47,10 +48,11 @@ def _directory_path_is_valid_path(cls, value):
4748

4849
class CreateFileTransferTarget(BaseModel):
4950
directory_path: str
51+
# JSON format is not supported as a target
5052
file_format: CSV | JSONLine | Excel | XML = Field(
5153
...,
5254
discriminator="type",
53-
) # JSON FORMAT IS NOT SUPPORTED AS A TARGET !
55+
)
5456
options: dict[str, Any] = Field(default_factory=dict)
5557

5658
class Config:

0 commit comments

Comments
 (0)