설정
설정 우선순위는 CLI 인수 > 설정 파일 > 기본값입니다. 해석 결과는 resolveConfig가 반환하는 CliConfig 객체입니다.
CliConfig
핵심 설정 타입입니다. specPath를 제외한 모든 필드는 선택 사항입니다.
| 필드 | 타입 | 기본값 | 설명 |
|---|---|---|---|
specPath | string | 필수 | OpenAPI 3.2 JSON 명세의 경로 또는 http(s):// URL |
serverUrl | string | (명세에서 가져옴) | 명세의 서버 기본 URL 덮어쓰기 |
outputDir | string | "./openapi-cli-report" | 보고서 파일을 저장할 디렉터리 |
formats | ReportFormat[] | ["json","cli","html"] | 생성할 보고서 형식 |
filter | FilterConfig | undefined | 테스트할 작업 필터링 |
concurrency | number | 5 | 최대 동시 요청 수. 1~100 사이 정수 |
timeout | number | 30000 | 요청별 제한 시간(ms). 1~600000 사이 정수. 원격 명세를 가져올 때도 적용 |
proxy | string | undefined | HTTP(S) 프록시 URL. 예: http://proxy:8080 |
tls | TlsConfig | undefined | TLS 및 인증서 설정 |
headers | Record<string, string> | undefined | 각 요청에 추가로 보내는 헤더 |
auth | AuthConfig | undefined | 인증 설정 |
variables | Record<string, string> | undefined | 주입할 Postman {{name}} 변수 |
failOnError | boolean | true | CLI 전용: 테스트 실패 후 0이 아닌 코드 반환. 라이브러리 호출자는 보고서를 검사해야 함 |
envFile | string | undefined | 줄마다 KEY=VALUE 쌍이 있는 .env 파일 경로 |
grpcReflection | boolean | 자동 | gRPC: 명시적 설정, 작업 확장 순으로 우선 적용. 둘 다 없으면 proto 경로가 없을 때 활성화 |
grpcProtoPaths | string[] | undefined | gRPC: .proto 파일 또는 디렉터리 경로 |
mcpTransport | "streamable-http" | "stdio" | "streamable-http" | MCP: MCP 작업의 전송 방식 |
mcpCommand | string | undefined | MCP stdio: 시작할 명령 |
mcpArgs | string[] | undefined | MCP stdio: 명령 인수 |
mcpCwd | string | undefined | MCP stdio: 작업 디렉터리 |
ReportFormat은 유니언 타입 "json" | "cli" | "html"입니다.