Commits
Tarun Sukhani authored 1b2af7df49c
fix: treat JSON-library tree types as opaque object schemas (PF-102) After PF-98 added getter reflection, beans with JsonElement / JsonNode / JSONObject fields started recursing into the library's API surface (asString, isJsonArray, etc.) and registering ~5 noise schemas in components/schemas per field reference. Drops five entries from JClaw's spec in the ChannelView case alone. Short-circuit early in classSchema(): if cls is com.google.gson.JsonElement (or one of its four subclasses), or extends com.fasterxml.jackson.databind .JsonNode (superclass walk catches ObjectNode/ArrayNode/etc.), or is org.json.JSONObject / JSONArray, return a plain ObjectSchema with no recursion. Detection is by fully-qualified class name (and superclass-chain walk for Jackson), so neither Jackson nor json.org becomes a framework compile-time dep. Gson is already a runtime dep so the predicate evaluates lazily. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>