feat: 접근성 검사 표준 선택 기능 — WCAG/KWCAG 버전별 선택 지원
3가지 검사 모드(한 페이지, 사이트 크롤링, 목록 업로드) 모두에서 접근성 표준을 선택할 수 있도록 추가. WCAG 2.0 A/AA, 2.1 AA, 2.2 AA와 KWCAG 2.1, 2.2를 지원하며, KWCAG 선택 시 axe-core 결과를 KWCAG 검사항목으로 자동 매핑. - KWCAG 2.2 (33항목) / 2.1 (24항목) ↔ WCAG 매핑 테이블 (kwcag_mapping.py) - AccessibilityChecker에 표준 파싱 및 KWCAG 변환 로직 추가 - 전체 API 파이프라인에 accessibility_standard 파라미터 전파 - 프론트엔드 3개 폼에 공용 표준 선택 드롭다운 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@ -7,6 +7,9 @@ from typing import Optional
|
||||
from datetime import datetime
|
||||
from enum import Enum
|
||||
|
||||
# Default accessibility standard
|
||||
DEFAULT_ACCESSIBILITY_STANDARD = "wcag_2.1_aa"
|
||||
|
||||
|
||||
# --- Enums ---
|
||||
|
||||
@ -31,6 +34,10 @@ class StartSiteInspectionRequest(BaseModel):
|
||||
max_pages: int = Field(default=20, ge=0, le=500, description="최대 크롤링 페이지 수 (0=무제한)")
|
||||
max_depth: int = Field(default=2, ge=1, le=3, description="최대 크롤링 깊이")
|
||||
concurrency: int = Field(default=4, ge=1, le=8, description="동시 검사 수")
|
||||
accessibility_standard: str = Field(
|
||||
default=DEFAULT_ACCESSIBILITY_STANDARD,
|
||||
description="접근성 검사 표준 (wcag_2.0_a, wcag_2.0_aa, wcag_2.1_aa, wcag_2.2_aa, kwcag_2.1, kwcag_2.2)",
|
||||
)
|
||||
|
||||
|
||||
class InspectPageRequest(BaseModel):
|
||||
@ -69,6 +76,7 @@ class SiteInspectionConfig(BaseModel):
|
||||
max_pages: int = 20
|
||||
max_depth: int = 2
|
||||
concurrency: int = 4
|
||||
accessibility_standard: str = DEFAULT_ACCESSIBILITY_STANDARD
|
||||
|
||||
|
||||
# --- Response Models ---
|
||||
|
||||
Reference in New Issue
Block a user