샘플
Configure orjson option bitmasks to intercept subclasses, dataclasses, naive timestamps, and JS-safe integers that default serialization silently bypasses or corrupts
sha256:05f2672095e6b40251604acdb3f1cf2defa139aa701bc9f92f5d48baa62b229e
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Configure orjson option bitmasks to intercept subclasses, dataclasses, naive timestamps, and JS-safe integers that default serialization silently bypasses or corrupts HOW
- 패키지
- orjson 3.12.0
- 환경
- python
- 생성일
- 2026-08-16T07:09:11Z
컨트랙트
- assert primitive subclasses bypass the default hook and serialize raw unless OPT_PASSTHROUGH_SUBCLASS is set
- assert dataclasses bypass the default hook and serialize all fields natively unless OPT_PASSTHROUGH_DATACLASS is set
- assert datetime objects bypass the default hook unless OPT_PASSTHROUGH_DATETIME is set
- assert OPT_UTC_Z alone has no effect on naive datetimes, requiring OPT_NAIVE_UTC composed via bitwise OR to emit Zulu format
- assert integers within 53-bit range serialize under OPT_STRICT_INTEGER while integers exceeding 2**53-1 raise TypeError
- assert orjson.Fragment splices raw buffers zero-copy and raises TypeError during dumps if the content is not bytes or str
- assert dumps parameter is singular 'option' raising TypeError on 'options', and invalid bitmasks raise TypeError
- assert OPT_APPEND_NEWLINE writes a trailing newline and composed options execute simultaneously in a single dumps pass
파일
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/config.py
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9