Skip to content

Commit 5d7d2fe

Browse files
committed
Added 'Config' inner class with JSON serialisation settings to 'Security' model
1 parent 16acf3a commit 5d7d2fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/murfey/util/config.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ class Security(BaseModel):
140140
graylog_host: str = ""
141141
graylog_port: Optional[int] = None
142142

143+
class Config:
144+
json_encoders = {
145+
Path: str,
146+
}
147+
143148
@validator("graylog_port")
144149
def check_port_present_if_host_is(
145150
cls, v: Optional[int], values: dict, **kwargs

0 commit comments

Comments
 (0)