feat(import): preserve supported HTTP contracts

This commit is contained in:
bsodfather committed 2026-09-13 03:30:31 +03:00
1 parent 083974c27f
commit f8ee7c9bfe
87 files changed
+7496 -534

No files matched your search

+2 -2
View File
@@ -221,10 +221,10 @@ paths:
#[test]
fn unsupported_method_has_exact_finding_pointer_and_coverage() {
let ir = normalize(
"openapi: 3.1.0\ninfo: { title: Unsupported }\npaths: { /ok: { get: { responses: { '200': { description: ok } } }, head: { responses: {} } } }",
"openapi: 3.1.0\ninfo: { title: Unsupported }\npaths: { /ok: { get: { responses: { '200': { description: ok } } }, trace: { responses: {} } } }",
);
validate_normalized_ir(&ir).unwrap();
let pointer = "/paths/~1ok/head";
let pointer = "/paths/~1ok/trace";
let construct_id = format!("3.1.0:{pointer}");
assert!(ir.findings.iter().any(|finding| {
finding.code == "unsupported_http_method"