chore(ci): allow the bounded OpenAPI $ref inliners in the recursive-function check

Both are bounded: the ref walk carries a seen-set cycle guard and the rest of the walk is limited by the spec's finite JSON-schema depth.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-08-13 20:40:36 +00:00
parent 7e59527359
commit 0f73fbfa9b

View file

@ -60,6 +60,8 @@ IGNORE_FUNCTIONS = [
"json_string_leaves", # max depth set (MAX_STRUCTURED_CONTENT_SCAN_DEPTH); fails closed by raising at the cap so nothing goes unscanned.
"with_json_string_leaves", # transitively bounded: only runs on a tree json_string_leaves already walked under the cap.
"json_unrewritable_labels", # max depth set (MAX_STRUCTURED_CONTENT_SCAN_DEPTH); returns the None sentinel at the cap so the caller blocks.
"_inline_schema_refs", # OpenAPI: bounded by the `seen` ref cycle guard and by the spec's finite JSON-schema depth.
"_inlined_schema_value", # OpenAPI: transitively bounded, it only walks what _inline_schema_refs already bounded.
]