샘플
Distinguish Flask 3.1.3 strict and silent JSON parsing for wrong media types and malformed request bodies
sha256:de2358b9fc048b9db1b55ed6ed84be95a4de040da9631a9d74db248c2308b11d
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Distinguish Flask 3.1.3 strict and silent JSON parsing for wrong media types and malformed request bodies HOW
- 패키지
- flask 3.1.3
- 환경
- python 3.12
- 생성일
- 2026-08-17T02:12:12Z
컨트랙트
- assert Flask 3.1.3 request.get_json accepts an application/json body and Response.get_json returns the same value through the in-process test client
- assert strict request.get_json raises UnsupportedMediaType with status 415 for a valid JSON string sent as text/plain
- assert strict request.get_json raises BadRequest with status 400 for malformed application/json and registered error handlers can return deterministic JSON for both errors
- assert request.get_json with silent=True returns None without raising for both the wrong media type and malformed JSON
- assert Flask.test_client exercises every path without opening a listening socket
파일
- csx.json
- requirements.in
- requirements.lock
- requirements.txt
- test/contract.py
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9