MCPcopy
hub / github.com/marimo-team/marimo / _replace_base64

Function _replace_base64

marimo/_cli/development/commands.py:198–208  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

196 return {"$ref": "#/components/schemas/Base64String"}
197
198 def _replace_base64(obj: Any) -> Any:
199 if isinstance(obj, dict):
200 if (
201 obj.get("type") == "string"
202 and obj.get("contentEncoding") == "base64"
203 ):
204 return _make_base64_ref()
205 return {k: _replace_base64(v) for k, v in obj.items()}
206 if isinstance(obj, list):
207 return [_replace_base64(item) for item in obj]
208 return obj
209
210 for schema_name in list(component_schemas):
211 if schema_name == "Base64String":

Callers 1

_enrich_branded_typesFunction · 0.85

Calls 3

_make_base64_refFunction · 0.85
getMethod · 0.65
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…