Options for TOON decoding.
| 46 | |
| 47 | |
| 48 | class DecoderOptions: |
| 49 | """Options for TOON decoding.""" |
| 50 | |
| 51 | def __init__( |
| 52 | self, |
| 53 | strict: bool = DEFAULT_STRICT, |
| 54 | expand_paths: str = EXPAND_PATHS_OFF, |
| 55 | default_delimiter: str = DEFAULT_DELIMITER |
| 56 | ): |
| 57 | """ |
| 58 | Initialize decoder options. |
| 59 | |
| 60 | Args: |
| 61 | strict: Validate structure strictly |
| 62 | expand_paths: Path expansion mode ('off' | 'safe') |
| 63 | default_delimiter: Default delimiter for arrays |
| 64 | """ |
| 65 | self.strict = strict |
| 66 | self.expand_paths = expand_paths |
| 67 | self.default_delimiter = default_delimiter |
| 68 | |
| 69 | |
| 70 | def decode(toon_string: str, options: Optional[Dict[str, Any]] = None) -> Any: |
no outgoing calls
no test coverage detected
searching dependent graphs…