We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88037f commit 74bb1c3Copy full SHA for 74bb1c3
1 file changed
app/models/subscription.py
@@ -125,6 +125,18 @@ class XHTTPTransportConfig(BaseTransportConfig):
125
http_headers: dict[str, str] | None = Field(None)
126
random_user_agent: bool = Field(False)
127
128
+ @field_validator(
129
+ "sc_max_each_post_bytes",
130
+ "sc_min_posts_interval_ms",
131
+ "uplink_chunk_size",
132
+ mode="before",
133
+ )
134
+ @classmethod
135
+ def normalize_numeric_or_range_fields(cls, value):
136
+ if isinstance(value, int):
137
+ return str(value)
138
+ return value
139
+
140
141
class KCPTransportConfig(BaseTransportConfig):
142
"""KCP transport - only kcp-specific fields"""
0 commit comments