Open zagy opened 6 months ago
I think it's meant to be used just like this, e.g. self += JSONContent(…) but that's inconsistent with text content where one uses File(…). So my expectation would be either File(content=JSONContent(…)) or File(json=…)
self += JSONContent(…)
File(…)
File(content=JSONContent(…))
File(json=…)
See https://github.com/flyingcircusio/batou/blob/0a3096117f63455bb040825f577a887a928c16ff/src/batou/lib/file.py#L113C17-L124 probably
Exactly.
I think it's meant to be used just like this, e.g.
self += JSONContent(…)
but that's inconsistent with text content where one usesFile(…)
. So my expectation would be eitherFile(content=JSONContent(…))
orFile(json=…)